# HG changeset patch # User Igor Sysoev # Date 1275423870 0 # Node ID bc734cf061b0fd1436408d5b560701056d7fb27a # Parent 36b3c1b21544940bc9a68f32c38ee9572743c989 improve uwsgi_string processing diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c --- 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_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_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;