-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP headers should be case-insensitive when used in FEEL expressions #2684
Labels
kind:bug
Something isn't working
Comments
@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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: