diff options
author | Valentin Bartenev <vbart@nginx.com> | 2015-09-28 20:02:05 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2015-09-28 20:02:05 +0300 |
commit | 20669d1949cc6152ffef1c0834544d2dfa743723 (patch) | |
tree | 7847ba5738272b22396cfcb4546352a79b3651d1 /src | |
parent | 4bab18f63d43887844732732e2d8ba9cc996c44d (diff) | |
download | nginx-20669d1949cc6152ffef1c0834544d2dfa743723.tar.gz nginx-20669d1949cc6152ffef1c0834544d2dfa743723.zip |
HTTP/2: fixed $server_protocol value (ticket #800).
Diffstat (limited to 'src')
-rw-r--r-- | src/http/v2/ngx_http_v2.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |