]> git.kaiwu.me - nginx.git/commitdiff
Removed extraneous check while processing request line.
authorRuslan Ermilov <ru@nginx.com>
Thu, 7 Jun 2018 16:53:43 +0000 (19:53 +0300)
committerRuslan Ermilov <ru@nginx.com>
Thu, 7 Jun 2018 16:53:43 +0000 (19:53 +0300)
src/http/ngx_http_request.c

index 47c62d9fd54a3748ec98d4236ce3caee5081431a..210994b6f5648eaaae85909f8f17e7308805cbea 100644 (file)
@@ -987,7 +987,7 @@ ngx_http_process_request_line(ngx_event_t *rev)
                 return;
             }
 
-            if (r->host_start && r->host_end) {
+            if (r->host_end) {
 
                 host.len = r->host_end - r->host_start;
                 host.data = r->host_start;