Mercurial > hg > nginx-tests
comparison http_headers_multi.t @ 1960:e44ee916b959
Tests: adjusted http_headers_multi.t for $content_length changes.
The $content_length variable is going to be not available after discarding
the request body. As such, the relevant location is now proxied, so the
request body is not discarded.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 27 Apr 2024 18:55:21 +0300 |
parents | a2572de6e840 |
children |
comparison
equal
deleted
inserted
replaced
1959:9877dce42a59 | 1960:e44ee916b959 |
---|---|
94 add_header X-Content-Length $content_length; | 94 add_header X-Content-Length $content_length; |
95 add_header X-Content-Type $content_type; | 95 add_header X-Content-Type $content_type; |
96 add_header X-Host $host; | 96 add_header X-Host $host; |
97 add_header X-Remote-User $remote_user; | 97 add_header X-Remote-User $remote_user; |
98 | 98 |
99 return 204; | 99 proxy_pass http://127.0.0.1:8080/backend; |
100 } | 100 } |
101 | 101 |
102 location /d { | 102 location /d { |
103 return 204; | 103 return 204; |
104 } | 104 } |