]> git.kaiwu.me - nginx.git/commit
Assume the HTTP/1.0 version by default.
authorValentin Bartenev <vbart@nginx.com>
Sun, 1 Sep 2013 23:45:14 +0000 (03:45 +0400)
committerValentin Bartenev <vbart@nginx.com>
Sun, 1 Sep 2013 23:45:14 +0000 (03:45 +0400)
commit3d7d48e52c4029c8a6e8ad710d8c4055b8da71ce
treed81260dde4d09ed71d7b02f338a858ae82148ba1
parent9f46a9df864c74a2b175840895173e1ddb2cf6f3
Assume the HTTP/1.0 version by default.

It is believed to be better than fallback to HTTP/0.9, because most of
the clients at present time support HTTP/1.0.  It allows nginx to return
error response code for them in cases when it fail to parse request line,
and therefore fail to detect client protocol version.

Even if the client does not support HTTP/1.0, this assumption should not
cause any harm, since from the HTTP/0.9 point of view it still a valid
response.
src/http/ngx_http_request.c