<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>