Browse Source

Some sources were missing.

master
Hakase 9 months ago
parent
commit
4aa17fdc2c
2 changed files with 19 additions and 2 deletions
  1. 6
    2
      nginx_hpack_push.patch
  2. 13
    0
      nginx_hpack_push_fix.patch

+ 6
- 2
nginx_hpack_push.patch View File

@@ -153,7 +153,7 @@ index 77ebb847..303d157f 100644
153 153
              break;
154 154
          }
155 155
 diff --git a/src/http/v2/ngx_http_v2.h b/src/http/v2/ngx_http_v2.h
156
-index ebd0e77c..bb89a634 100644
156
+index ebd0e77c..b152b504 100644
157 157
 --- a/src/http/v2/ngx_http_v2.h
158 158
 +++ b/src/http/v2/ngx_http_v2.h
159 159
 @@ -52,6 +52,14 @@
@@ -248,7 +248,7 @@ index ebd0e77c..bb89a634 100644
248 248
      ngx_pool_t                      *pool;
249 249
  
250 250
      unsigned                         waiting:1;
251
-@@ -410,4 +467,31 @@ u_char *ngx_http_v2_string_encode(u_char *dst, u_char *src, size_t len,
251
+@@ -410,4 +467,35 @@ u_char *ngx_http_v2_string_encode(u_char *dst, u_char *src, size_t len,
252 252
      u_char *tmp, ngx_uint_t lower);
253 253
  
254 254
  
@@ -278,6 +278,10 @@ index ebd0e77c..bb89a634 100644
278 278
 +#define ngx_http_v2_write_header_tbl(key, val)                          \
279 279
 +    ngx_http_v2_write_header(h2c, pos, (u_char *) key, sizeof(key) - 1, \
280 280
 +    val.data, val.len, tmp);
281
++
282
++#define ngx_http_v2_write_header_pot(key, val)                          \
283
++    ngx_http_v2_write_header(h2c, pos, (u_char *) key, sizeof(key) - 1, \
284
++    val->data, val->len, tmp);
281 285
 +
282 286
  #endif /* _NGX_HTTP_V2_H_INCLUDED_ */
283 287
 diff --git a/src/http/v2/ngx_http_v2_encode.c b/src/http/v2/ngx_http_v2_encode.c

+ 13
- 0
nginx_hpack_push_fix.patch View File

@@ -1,3 +1,16 @@
1
+diff --git a/src/http/v2/ngx_http_v2.h b/src/http/v2/ngx_http_v2.h
2
+index ae826af..41086a6 100644
3
+--- a/src/http/v2/ngx_http_v2.h
4
++++ b/src/http/v2/ngx_http_v2.h
5
+@@ -490,4 +490,8 @@ ngx_http_v2_table_resize(ngx_http_v2_connection_t *h2c);
6
+     ngx_http_v2_write_header(h2c, pos, (u_char *) key, sizeof(key) - 1, \
7
+     val.data, val.len, tmp);
8
+ 
9
++#define ngx_http_v2_write_header_pot(key, val)                          \
10
++    ngx_http_v2_write_header(h2c, pos, (u_char *) key, sizeof(key) - 1, \
11
++    val->data, val->len, tmp);
12
++
13
+ #endif /* _NGX_HTTP_V2_H_INCLUDED_ */
1 14
 diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c
2 15
 index 6a210d4..8a59424 100644
3 16
 --- a/src/http/v2/ngx_http_v2_filter_module.c

Loading…
Cancel
Save