changeset 3555:bc734cf061b0

improve uwsgi_string processing
author Igor Sysoev <igor@sysoev.ru>
date Tue, 01 Jun 2010 20:24:30 +0000
parents 36b3c1b21544
children b9415935d95d
files src/http/modules/ngx_http_uwsgi_module.c
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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;