changeset 6256:9dfc4ba140f9

HTTP/2: fixed $server_protocol value (ticket #800).
author Valentin Bartenev <vbart@nginx.com>
date Mon, 28 Sep 2015 20:02:05 +0300
parents b40af2fd1c16
children 5eb4d7541107
files src/http/v2/ngx_http_v2.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/v2/ngx_http_v2.c	Thu Sep 24 17:19:08 2015 +0300
+++ b/src/http/v2/ngx_http_v2.c	Mon Sep 28 20:02:05 2015 +0300
@@ -2762,6 +2762,8 @@
         return NULL;
     }
 
+    ngx_str_set(&r->http_protocol, "HTTP/2.0");
+
     r->http_version = NGX_HTTP_VERSION_20;
     r->valid_location = 1;