diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-06-01 20:24:30 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-06-01 20:24:30 +0000 |
commit | 66ba32c87944b0efb45dc3c3122cdc31ed5d9399 (patch) | |
tree | d9c8cf12a37f1fd892d1bc6a82f3ec9a59275f9f /src/http/modules/ngx_http_uwsgi_module.c | |
parent | b36e5a7952110e0334fed08547ca5bbf62b1d867 (diff) | |
download | nginx-66ba32c87944b0efb45dc3c3122cdc31ed5d9399.tar.gz nginx-66ba32c87944b0efb45dc3c3122cdc31ed5d9399.zip |
improve uwsgi_string processing
Diffstat (limited to 'src/http/modules/ngx_http_uwsgi_module.c')
-rw-r--r-- | src/http/modules/ngx_http_uwsgi_module.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c index 2531ef47c..ade82070c 100644 --- a/src/http/modules/ngx_http_uwsgi_module.c +++ b/src/http/modules/ngx_http_uwsgi_module.c @@ -476,9 +476,7 @@ ngx_http_uwsgi_create_request(ngx_http_request_t *r) } } - if (uwcf->uwsgi_string.data && uwcf->uwsgi_string.len) { - len += uwcf->uwsgi_string.len; - } + len += uwcf->uwsgi_string.len; #if 0 /* allow custom uwsgi packet */ @@ -588,10 +586,8 @@ ngx_http_uwsgi_create_request(ngx_http_request_t *r) } } - if (uwcf->uwsgi_string.data && uwcf->uwsgi_string.len) { - b->last = ngx_copy(b->last, uwcf->uwsgi_string.data, - uwcf->uwsgi_string.len); - } + b->last = ngx_copy(b->last, uwcf->uwsgi_string.data, + uwcf->uwsgi_string.len); if (uwcf->upstream.pass_request_body) { body = r->upstream->request_bufs; |