| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 17fad97 commit 33d4d91
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,14 +29,14 @@ | |||
| 29 | 29 | * @macro | |
| 30 | 30 | * Version number of the nghttp2 library release | |
| 31 | 31 | */ | |
| 32 | - #define NGHTTP2_VERSION "1.38.0" | ||
| 32 | + #define NGHTTP2_VERSION "1.39.1" | ||
| 33 | 33 | ||
| 34 | 34 | /** | |
| 35 | 35 | * @macro | |
| 36 | 36 | * Numerical representation of the version number of the nghttp2 library | |
| 37 | 37 | * release. This is a 24 bit number with 8 bits for major number, 8 bits | |
| 38 | 38 | * for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203. | |
| 39 | 39 | */ | |
| 40 | - #define NGHTTP2_VERSION_NUM 0x012600 | ||
| 40 | + #define NGHTTP2_VERSION_NUM 0x012701 | ||
| 41 | 41 | ||
| 42 | 42 | #endif /* NGHTTP2VER_H */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -263,11 +263,14 @@ static int http_response_on_header(nghttp2_stream *stream, nghttp2_hd_nv *nv, | |||
| 263 | 263 | stream->content_length = 0; | |
| 264 | 264 | return NGHTTP2_ERR_REMOVE_HTTP_HEADER; | |
| 265 | 265 | } | |
| 266 | - if (stream->status_code / 100 == 1 || | ||
| 267 | - (stream->status_code / 100 == 2 && | ||
| 268 | - (stream->http_flags & NGHTTP2_HTTP_FLAG_METH_CONNECT))) { | ||
| 266 | + if (stream->status_code / 100 == 1) { | ||
| 269 | 267 | return NGHTTP2_ERR_HTTP_HEADER; | |
| 270 | 268 | } | |
| 269 | + /* https://tools.ietf.org/html/rfc7230#section-3.3.3 */ | ||
| 270 | + if (stream->status_code / 100 == 2 && | ||
| 271 | + (stream->http_flags & NGHTTP2_HTTP_FLAG_METH_CONNECT)) { | ||
| 272 | + return NGHTTP2_ERR_REMOVE_HTTP_HEADER; | ||
| 273 | + } | ||
| 271 | 274 | if (stream->content_length != -1) { | |
| 272 | 275 | return NGHTTP2_ERR_HTTP_HEADER; | |
| 273 | 276 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments