-
-
Notifications
You must be signed in to change notification settings - Fork 782
Closed
Description
SUMMARY
The case used for the header name in trigger.headers[] in a web-hook rule is treated in a case sensitive manner. HTTP headers are case insensitive so the case of the name in the headers should not e relevant.
STACKSTORM VERSION
3.2.0
OS, environment, install method
Seen on one-line install and HA
Steps to reproduce the problem
See #4995 for initial case.
- Configure webhookrule with trigger.headers['X-GitHub-Event']
- Send in header via curl of X-GitHub-Event to webhook
- Rule doesn't match
- Change rule to be trigger.headers['X-Github-Event'] - rule matches
Expected Results
As http headers are case insensitive then it should not matter what case is used in the rule. Therefore no matter what case header is or case of rule then they should match.
Actual Results
Only matched when rule defined as X-Github-Event