]> git.kaiwu.me - nginx.git/commitdiff
SPDY: use predefined constant for size of the Stream-ID field.
authorValentin Bartenev <vbart@nginx.com>
Wed, 18 Dec 2013 14:39:29 +0000 (18:39 +0400)
committerValentin Bartenev <vbart@nginx.com>
Wed, 18 Dec 2013 14:39:29 +0000 (18:39 +0400)
No functional changes.

src/http/ngx_http_spdy_filter_module.c

index 805177651f3abb0fef905cf46b04816a78d540ef..4497e8b16037d570893a55766d0ba046367c2c79 100644 (file)
@@ -751,7 +751,7 @@ ngx_http_spdy_filter_get_data_frame(ngx_http_spdy_stream_t *stream,
             p = buf->start;
             buf->pos = p;
 
-            p += sizeof(uint32_t);
+            p += NGX_SPDY_SID_SIZE;
 
             (void) ngx_spdy_frame_write_flags_and_len(p, flags, len);