improve uwsgi_string processing
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c index 2531ef4..ade8207 100644 --- a/src/http/modules/ngx_http_uwsgi_module.c +++ b/src/http/modules/ngx_http_uwsgi_module.c
@@ -476,9 +476,7 @@ } } - 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 @@ } } - 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;