From 20669d1949cc6152ffef1c0834544d2dfa743723 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 28 Sep 2015 20:02:05 +0300 Subject: [PATCH] HTTP/2: fixed $server_protocol value (ticket #800). --- src/http/v2/ngx_http_v2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c index bf0799772..9c6aeb7be 100644 --- 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_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;