]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: fixed $server_protocol value (ticket #800).
authorValentin Bartenev <vbart@nginx.com>
Mon, 28 Sep 2015 17:02:05 +0000 (20:02 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 28 Sep 2015 17:02:05 +0000 (20:02 +0300)
src/http/v2/ngx_http_v2.c

index bf07997724984c4d9c2016a72e52cd06990fc860..9c6aeb7bec27764adb5c682ae77a6816115e61b1 100644 (file)
@@ -2762,6 +2762,8 @@ ngx_http_v2_create_stream(ngx_http_v2_connection_t *h2c)
         return NULL;
     }
 
+    ngx_str_set(&r->http_protocol, "HTTP/2.0");
+
     r->http_version = NGX_HTTP_VERSION_20;
     r->valid_location = 1;