[nginx] Removed extraneous check while processing request line.

Ruslan Ermilov ru at nginx.com
Thu Jun 7 19:01:19 UTC 2018


details:   http://hg.nginx.org/nginx/rev/21ad2af3262c
branches:  
changeset: 7294:21ad2af3262c
user:      Ruslan Ermilov <ru at nginx.com>
date:      Thu Jun 07 19:53:43 2018 +0300
description:
Removed extraneous check while processing request line.

diffstat:

 src/http/ngx_http_request.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d588987701f4 -r 21ad2af3262c src/http/ngx_http_request.c
--- a/src/http/ngx_http_request.c	Thu Jun 07 11:47:10 2018 +0300
+++ b/src/http/ngx_http_request.c	Thu Jun 07 19:53:43 2018 +0300
@@ -987,7 +987,7 @@ ngx_http_process_request_line(ngx_event_
                 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;


More information about the nginx-devel mailing list