changeset 1677:c997912a8f0b

copy protocol value when large request line is copied, this fixes error "fastcgi: the request record is too big"
author Igor Sysoev <igor@sysoev.ru>
date Sat, 01 Dec 2007 12:22:48 +0000
parents 447765dc6d67
children d24280472a9f
files src/http/ngx_http_request.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1154,6 +1154,10 @@ ngx_http_alloc_large_header_buffer(ngx_h
             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);