# Response have a HTTP header for request which can not correctly parse the HTTP version

**URL:** <https://www.ruby-forum.com/t/response-have-a-http-header-for-request-which-can-not-correctly-parse-the-http-version/185281>\
**Category:** NGINX\
**Created:** [March 17, 2010, 1:12pm UTC](https://www.ruby-forum.com/t/response-have-a-http-header-for-request-which-can-not-correctly-parse-the-http-version/185281 "2010-03-17T13:12:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirill\_ASKorinskiy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e274bd/32.png) [@Kirill\_ASKorinskiy](https://www.ruby-forum.com/u/Kirill_ASKorinskiy)\
**Post date:** [March 17, 2010, 1:12pm UTC](https://www.ruby-forum.com/t/response-have-a-http-header-for-request-which-can-not-correctly-parse-the-http-version/185281/1 "2010-03-17T13:12:27Z")

</div>

From: Kirill A. Korinskiy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

## 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
