aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_uwsgi_module.c10
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;