From: Valentin Bartenev Date: Mon, 28 Sep 2015 17:02:05 +0000 (+0300) Subject: HTTP/2: fixed $server_protocol value (ticket #800). X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=20669d1949cc6152ffef1c0834544d2dfa743723;p=nginx.git HTTP/2: fixed $server_protocol value (ticket #800). --- 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;