Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2018-06-07 19:53:43 +0300
committerRuslan Ermilov <ru@nginx.com>2018-06-07 19:53:43 +0300
commit70b6e7a299e6488c2f59f1768c600921bd08a2d7 (patch)
treebf54f8835493f65b4426402873c3956483612aee /src/http/ngx_http_request.c
parent94a2ce426fc36a6c82411a331bb18bf129c6d014 (diff)
Removed extraneous check while processing request line.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 47c62d9fd..210994b6f 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -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;