Request matching headers #181
-
|
Is there any way to do a request matching making sure a specific header is specified? I'm trying to send a different response if the request does not include a specific header. I already tried using: {{#if request.headers.header-name}} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
There is a bug in Camouflage that prevents request matching using headers. I have made the required changes and it should work in If you want to validate a given header against a specific value, the mock file would be as shown below: Note that above snippets will work with |
Beta Was this translation helpful? Give feedback.
There is a bug in Camouflage that prevents request matching using headers. I have made the required changes and it should work in
0.8.2in following manner.If you want to validate a given header against a specific value, the mock file would be as shown below: