diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-12-01 12:22:48 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-01 12:22:48 +0000 |
commit | 58ea0c1aad286e5ac876be29bb61bd44afd972df (patch) | |
tree | ba004e6ad488ee603b5742f93874f5528b62636e /src/http/ngx_http_request.c | |
parent | 1d4e9b31cc78b355fa8b0b7d37d6d0d537fe49d4 (diff) | |
download | nginx-58ea0c1aad286e5ac876be29bb61bd44afd972df.tar.gz nginx-58ea0c1aad286e5ac876be29bb61bd44afd972df.zip |
copy protocol value when large request line is copied,
this fixes error "fastcgi: the request record is too big"
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |