]> git.kaiwu.me - nginx.git/commit
Fixed incorrect use of r->http_version in scgi module.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 19 Dec 2011 11:23:16 +0000 (11:23 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 19 Dec 2011 11:23:16 +0000 (11:23 +0000)
commit4d1e32d9d8216bb9eb29834bb5571bf246d89412
tree1d91dde463eb0b52b247845fb4e4c658ae77dc4d
parentafb7f22c037de7b7b6ff15a05cc60fe5c90254c2
Fixed incorrect use of r->http_version in scgi module.

The r->http_version is a version of client's request, and modules must
not set it unless they are really willing to downgrade protocol version
used for a response (i.e. to HTTP/0.9 if no response headers are available).
In neither case r->http_version may be upgraded.

The former code downgraded response from HTTP/1.1 to HTTP/1.0 for no reason,
causing various problems (see ticket #66).  It was also possible that
HTTP/0.9 requests were upgraded to HTTP/1.0.
src/http/modules/ngx_http_scgi_module.c