aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_spdy_module.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2014-01-31 19:17:26 +0400
committerValentin Bartenev <vbart@nginx.com>2014-01-31 19:17:26 +0400
commit449e8eeb53d33d6a62622b76bf4862ca983b44f3 (patch)
tree8c9218c84282aff81f364e694bea843c0bd0b3ea /src/http/ngx_http_spdy_module.c
parent8d97a2e4d7ef3fb4890663255f0893fcd047fea2 (diff)
downloadnginx-449e8eeb53d33d6a62622b76bf4862ca983b44f3.tar.gz
nginx-449e8eeb53d33d6a62622b76bf4862ca983b44f3.zip
SPDY: protocol implementation switched to spdy/3.1.
Diffstat (limited to 'src/http/ngx_http_spdy_module.c')
-rw-r--r--src/http/ngx_http_spdy_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_spdy_module.c b/src/http/ngx_http_spdy_module.c
index c706e3fe6..8307f15c8 100644
--- a/src/http/ngx_http_spdy_module.c
+++ b/src/http/ngx_http_spdy_module.c
@@ -180,11 +180,11 @@ ngx_http_spdy_variable(ngx_http_request_t *r,
ngx_http_variable_value_t *v, uintptr_t data)
{
if (r->spdy_stream) {
- v->len = 1;
+ v->len = sizeof("3.1") - 1;
v->valid = 1;
v->no_cacheable = 0;
v->not_found = 0;
- v->data = (u_char *) "2";
+ v->data = (u_char *) "3.1";
return NGX_OK;
}