We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbe70a5 commit 593d55eCopy full SHA for 593d55e
nginxadapter.go
@@ -170,7 +170,7 @@ func getCaddyVar(nginxVar string) string {
170
// variables prefixed with `$http_` correspond to respective header field with the suffix name
171
// Source: https://nginx.org/en/docs/http/ngx_http_core_module.html#var_http_
172
if strings.HasPrefix(nginxVar, "$http_") {
173
- return fmt.Sprintf("{http.request.header.%s}", strings.TrimPrefix(nginxVar, "$header_"))
+ return fmt.Sprintf("{http.request.header.%s}", strings.TrimPrefix(nginxVar, "$http_"))
174
}
175
return fmt.Sprintf("{http.vars.%s}", strings.TrimPrefix(nginxVar, "$"))
176
0 commit comments