# HG changeset patch # User Valentin Bartenev # Date 1443459725 -10800 # Node ID 9dfc4ba140f92b7908415417f75352224dc2fc68 # Parent b40af2fd1c1665bc79bd6c50233dd6c834f60b6b 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 --- 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;