]> git.kaiwu.me - nginx.git/commit
Request body: fixed "501 Not Implemented" error handling.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 21 Nov 2012 00:54:01 +0000 (00:54 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 21 Nov 2012 00:54:01 +0000 (00:54 +0000)
commitab5ac3b095acc5051a7e8088a301afd9704fc6fd
treea637a689cd65da8c9945f8d8473c287d1f94d1a3
parentd228cf3638eec3cb44023c506bebb9cfb7372fe9
Request body: fixed "501 Not Implemented" error handling.

It is not about "Method" but a generic message, and is expected to be used
e.g. if specified Transfer-Encoding is not supported.  Fixed message to
match RFC 2616.

Additionally, disable keepalive on such errors as we won't be able to read
request body correctly if we don't understand Transfer-Encoding used.
src/http/ngx_http_header_filter_module.c
src/http/ngx_http_special_response.c