changeset 6256:9dfc4ba140f9

HTTP/2: fixed $server_protocol value (ticket #800).
author Valentin Bartenev <vbart@nginx.com>
date Mon, 28 Sep 2015 20:02:05 +0300
parents b40af2fd1c16
children 5eb4d7541107
files src/http/v2/ngx_http_v2.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/v2/ngx_http_v2.c
+++ b/src/http/v2/ngx_http_v2.c
@@ -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;