[nginx] HTTP/2: fixed $server_protocol value (ticket #800).

Valentin Bartenev vbart at nginx.com
Mon Sep 28 17:04:50 UTC 2015


details:   http://hg.nginx.org/nginx/rev/9dfc4ba140f9
branches:  
changeset: 6256:9dfc4ba140f9
user:      Valentin Bartenev <vbart at nginx.com>
date:      Mon Sep 28 20:02:05 2015 +0300
description:
HTTP/2: fixed $server_protocol value (ticket #800).

diffstat:

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

diffs (12 lines):

diff -r b40af2fd1c16 -r 9dfc4ba140f9 src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c	Thu Sep 24 17:19:08 2015 +0300
+++ b/src/http/v2/ngx_http_v2.c	Mon Sep 28 20:02:05 2015 +0300
@@ -2762,6 +2762,8 @@ ngx_http_v2_create_stream(ngx_http_v2_co
         return NULL;
     }
 
+    ngx_str_set(&r->http_protocol, "HTTP/2.0");
+
     r->http_version = NGX_HTTP_VERSION_20;
     r->valid_location = 1;
 



More information about the nginx-devel mailing list