<div dir="ltr"> .<br>  :<div><br></div><div><div>--- src/http/ngx_http_header_filter_module.c.orig<span class="" style="white-space:pre"> </span>2013-05-13 10:43:28.000000000 +0000</div><div>

+++ src/http/ngx_http_header_filter_module.c<span class="" style="white-space:pre">   </span>2013-09-05 14:37:15.011369647 +0000</div><div>@@ -92,10 +92,7 @@</div><div>  ngx_string("411 Length Required"),</div>

<div>  ngx_string("412 Precondition Failed"),</div><div>  ngx_string("413 Request Entity Too Large"),</div><div>-  ngx_null_string, /* "414 Request-URI Too Large", but we never send it</div>

<div>-            * because we treat such requests as the HTTP/0.9</div><div>-            * requests and send only a body without a header</div><div>-            */</div><div>+  ngx_string("414 Request-URI Too Large"),</div>

<div>  ngx_string("415 Unsupported Media Type"),</div><div>  ngx_string("416 Requested Range Not Satisfiable"),</div><div></div><div>@@ -270,6 +267,12 @@</div><div>      len += NGX_INT_T_LEN;</div>

<div>      status_line = NULL;</div><div>    }</div><div>+</div><div>+    if (status_line && status_line->len == 0) {</div><div>+      status = r->headers_out.status;</div><div>+      len += NGX_INT_T_LEN;</div>

<div>+      status_line = NULL;</div><div>+    }</div><div>  }</div><div></div><div>  clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Sep 4, 2013 at 1:51 PM,   <span dir="ltr"><<a href="mailto:vbart@nginx.com" target="_blank">vbart@nginx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">On Wednesday 04 September 2013 13:54:18 Vladimir Getmanshchuk wrote:<br>
>   :<br>
><br>
>     error_page 414 =414 @414;<br>
><br>
>     location @414 {<br>
>      return 414;<br>
>     }<br>
>    -  200<br>
><br>
> 2013/09/04 09:40:10 [info] 5564#0: *45 client sent too long URI while<br>
> reading client request line, client: 123.123.123.123, server:<br>
> <a href="http://host.example.com" target="_blank">host.example.com</a>, request: "GET<br>
> /file.php?qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasd<br>
> fghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiop<br>
> asdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyu<br>
> iopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwer<br>
> tyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmq<br>
> wertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvb<br>
> nmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzx<br>
> cvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjk<br>
> lzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfg<br>
> hjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopas<br>
> dfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuio<br>
> pasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwerty<br>
> uiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwe<br>
> rtyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm<br>
> qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcv<br>
> bnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklz<br>
> xcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghj<br>
> klzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdf<br>
> ghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopa<br>
> sdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyui<br>
> opasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwert<br>
> yuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqw<br>
> ertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbn<br>
> mqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxc<br>
</div></div>> vbnmqwertyuiopasdfghjklzxcvbnmqwer 2013/09/04 09:40:10 [debug] 5564#0: *45<br>
<div class="im">> http finalize request: 414, "?" a:1, c:1<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 event timer del: 15: 1378287669763<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 http special response: 414, "?"<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 test location: "@414"<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 using location: @414 "?"<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 rewrite phase: 3<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 http finalize request: 414, "?"<br>
> a:1, c:2<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 http special response: 414, "?"<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 http set discard body<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 xslt filter header<br>
> 2013/09/04 09:40:10 [debug] 5564#0: *45 HTTP/1.1<br>
> Server: nginx/1.2.9<br>
> Date: Wed, 04 Sep 2013 09:40:10 GMT<br>
> Content-Type: text/html<br>
> Content-Length: 192<br>
> Connection: close<br>
><br>
</div>[..]<br>
<br>
  200,    . ,  ,  <br>
 : <a href="http://mailman.nginx.org/pipermail/nginx-devel/2013-April/003609.html" target="_blank">http://mailman.nginx.org/pipermail/nginx-devel/2013-April/003609.html</a><br>
<br>
  ݣ :<br>
<br>
# HG changeset patch<br>
# User Valentin Bartenev <<a href="mailto:vbart@nginx.com">vbart@nginx.com</a>><br>
# Date 1378228039 -14400<br>
# Node ID 9f8ebfbe04f28544fd9cfc1473679aee13202506<br>
# Parent 659464c695b7c70f64207462d0e1a4ee3d018583<br>
Return reason phrase for 414.<br>
<br>
After 62be77b0608f nginx can return this code.<br>
<br>
diff -r 659464c695b7 -r 9f8ebfbe04f2 src/http/ngx_http_header_filter_module.c<br>
--- a/src/http/ngx_http_header_filter_module.c Mon Sep 02 20:06:03 2013 +0400<br>
+++ b/src/http/ngx_http_header_filter_module.c Tue Sep 03 21:07:19 2013 +0400<br>
@@ -92,10 +92,7 @@ static ngx_str_t ngx_http_status_lines[]<br>
  ngx_string("411 Length Required"),<br>
  ngx_string("412 Precondition Failed"),<br>
  ngx_string("413 Request Entity Too Large"),<br>
-  ngx_null_string, /* "414 Request-URI Too Large", but we never send it<br>
-            * because we treat such requests as the HTTP/0.9<br>
-            * requests and send only a body without a header<br>
-            */<br>
+  ngx_string("414 Request-URI Too Large"),<br>
  ngx_string("415 Unsupported Media Type"),<br>
  ngx_string("416 Requested Range Not Satisfiable"),<br>
<br>
<br>
--<br>
<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Yours sincerely,<br>

Vladimir Getmanshchuk
</div>