From 58ea0c1aad286e5ac876be29bb61bd44afd972df Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 1 Dec 2007 12:22:48 +0000 Subject: copy protocol value when large request line is copied, this fixes error "fastcgi: the request record is too big" --- src/http/ngx_http_request.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 5ecdf1204..3d06f964f 100644 --- 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_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); -- cgit v1.2.3