Welcome! Log In Create A New Profile

Advanced

[PATCH] response have a HTTP header for request which can not correctly parse the HTTP version

Kirill A. Korinskiy
March 17, 2010 08:16AM
From: Kirill A. Korinskiy <catap@catap.ru>

Thanks for bugreport David Lodge
---
src/http/ngx_http_header_filter_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c
index ef17911..c890cd2 100644
--- a/src/http/ngx_http_header_filter_module.c
+++ b/src/http/ngx_http_header_filter_module.c
@@ -176,7 +176,7 @@ ngx_http_header_filter(ngx_http_request_t *r)
return NGX_OK;
}

- if (r->http_version < NGX_HTTP_VERSION_10) {
+ if (r->http_version && r->http_version < NGX_HTTP_VERSION_10) {
return NGX_OK;
}

--
1.6.6.1


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

[PATCH] response have a HTTP header for request which can not correctly parse the HTTP version

Kirill A. Korinskiy March 17, 2010 08:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready