Open chillleader opened 4 months ago
@chillleader to take a look whether the lower case conversion can be challenged and we could get rid of it OR find a different solution for accessing headers in webhook requests.
Decided in the grooming that we wont spend more time on this but rather document the behaviour in our docs that header names need to be accessed using lower case. cc @chillleader
Describe the Bug
HTTP headers are case-insensitive. For convenience, header keys are transformed to lowercase when processing the HTTP webhook connector requests. However, for the FEEL engine context variables are case-sensitive, which may lead to unexpected results when trying to reference header keys in FEEL expressions.
Steps to Reproduce
=request.headers.apiKey
apiKey
, observe an authentication errorapikey
instead (lowercase), locator expression:=request.headers.apikey
Expected Behavior
HTTP headers should be case-insensitive when referred to in FEEL expressions. Both
request.headers.apiKey
andrequest.headers.apikey
should return the same header.