response.header.content-type can not be parsed

When user the rest connector it seems not possible to parse a header field with dashes?

For example the header field content-type is not picked up as a variable when using feel expression:

= {
content-type: response.headers.content-type
}

Hi @geert.janszen, welcome to the forum!

You can parse a header field with dashes. The notation changes a bit with dashes: instead of dot notation .field-name, you have to use bracket notation ['field-name']

Using your example, it should look like this:

= {  
 content_type: response.headers['content-type']
}