]> git.kaiwu.me - nginx.git/commitdiff
Return reason phrase for 414.
authorValentin Bartenev <vbart@nginx.com>
Tue, 3 Sep 2013 17:07:19 +0000 (21:07 +0400)
committerValentin Bartenev <vbart@nginx.com>
Tue, 3 Sep 2013 17:07:19 +0000 (21:07 +0400)
After 62be77b0608f nginx can return this code.

src/http/ngx_http_header_filter_module.c

index 875177b46e9ecf2fff3d43899ff3ea12b296b989..fc54836f670275c5816b78e0e6add79a11ca7c20 100644 (file)
@@ -92,10 +92,7 @@ static ngx_str_t ngx_http_status_lines[] = {
     ngx_string("411 Length Required"),
     ngx_string("412 Precondition Failed"),
     ngx_string("413 Request Entity Too Large"),
-    ngx_null_string,  /* "414 Request-URI Too Large", but we never send it
-                       * because we treat such requests as the HTTP/0.9
-                       * requests and send only a body without a header
-                       */
+    ngx_string("414 Request-URI Too Large"),
     ngx_string("415 Unsupported Media Type"),
     ngx_string("416 Requested Range Not Satisfiable"),