a filter module which can do both regular expression and fixed string substitutions for nginx
607
stars
213
forks
source link
HTTP 1.0 responses are HTTP 1.1 and broken: content-length and transfer-encoding header is missing. #26
Open
niko opened 6 years ago
When doing HTTP 1.1 requests ngx_http_substitutions_filter_module removes the
content-length
header and addstransfer-encoding: chunked
. That's perfectly fine.When doing HTTP 1.0 requests ngx_http_substitutions_filter_module just removes the
content-length
header while still announcing a HTTP 1.1 response.(note that I have mixed the output of
curl
andcurl -v
for clarity)You can see that
curl
issues a HTTP 1.0 request and gets a broken HTTP 1.1 answer.Some clients (we have user reports of PHPs file_gets_content) break with a response like that.
We're using bc58cb11844bc42735bbaef7085ea86ace46d05b.