]> git.kaiwu.me - nginx.git/commitdiff
copy protocol value when large request line is copied,
authorIgor Sysoev <igor@sysoev.ru>
Sat, 1 Dec 2007 12:22:48 +0000 (12:22 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 1 Dec 2007 12:22:48 +0000 (12:22 +0000)
this fixes error "fastcgi: the request record is too big"

src/http/ngx_http_request.c

index 5ecdf120487e1445d8cbfca141f786072c5057df..3d06f964f02f32d47fe3b54f0c1d80032c815a34 100644 (file)
@@ -1154,6 +1154,10 @@ ngx_http_alloc_large_header_buffer(ngx_http_request_t *r,
             r->args_start = new + (r->args_start - old);
         }
 
+        if (r->http_protocol.data) {
+            r->http_protocol.data = new + (r->http_protocol.data - old);
+        }
+
     } else {
         r->header_name_start = new;
         r->header_name_end = new + (r->header_name_end - old);