You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Access to response bodies (backend_responses.<label>.*body) in modifiers (like set_response_headers) does not work.
To Reproduce
Steps to reproduce the behavior:
couper version: 0 2022-02-09 dev
Provide your configuration file *.hcl. Remove sensitive data.
server {
endpoint"/" {
proxy {
url="https://httpbin.org/anything"backend {
set_response_headers={
x-foo = backend_responses.default.headers.content-type # works
x-bug = backend_responses.default.json_body.method # does not work
}
custom_log_fields={
foo = backend_responses.default.headers.content-type # works
bar = backend_responses.default.json_body.method # works
}
}
}
}
}
Provide a curl call for reproduction: $ curl -v localhost:8080
Expected behavior X-Bug HTTP header field with GET value in the response.
The text was updated successfully, but these errors were encountered:
Describe the bug
Access to response bodies (
backend_responses.<label>.*body
) in modifiers (likeset_response_headers
) does not work.To Reproduce
Steps to reproduce the behavior:
couper version
:0 2022-02-09 dev
Provide your configuration file
*.hcl
. Remove sensitive data.curl
call for reproduction:$ curl -v localhost:8080
Expected behavior
X-Bug
HTTP header field withGET
value in the response.The text was updated successfully, but these errors were encountered: