Skip to content

Commit 125cac6

Browse files
deps: update nghttp2 to 1.68.1
1 parent f2fda60 commit 125cac6

File tree

4 files changed

+135
-91
lines changed

4 files changed

+135
-91
lines changed

deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
* @macro
3030
* Version number of the nghttp2 library release
3131
*/
32-
#define NGHTTP2_VERSION "1.68.0"
32+
#define NGHTTP2_VERSION "1.68.1"
3333

3434
/**
3535
* @macro
3636
* Numerical representation of the version number of the nghttp2 library
3737
* release. This is a 24 bit number with 8 bits for major number, 8 bits
3838
* for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
3939
*/
40-
#define NGHTTP2_VERSION_NUM 0x014400
40+
#define NGHTTP2_VERSION_NUM 0x014401
4141

4242
#endif /* NGHTTP2VER_H */

deps/nghttp2/lib/nghttp2_frame.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,16 @@ void nghttp2_frame_unpack_altsvc_payload(nghttp2_extension *frame,
750750
uint8_t *p;
751751

752752
altsvc = frame->payload;
753+
754+
if (payloadlen == 0) {
755+
altsvc->origin = NULL;
756+
altsvc->origin_len = 0;
757+
altsvc->field_value = NULL;
758+
altsvc->field_value_len = 0;
759+
760+
return;
761+
}
762+
753763
p = payload;
754764

755765
altsvc->origin = p;

deps/nghttp2/lib/nghttp2_int.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ typedef enum {
5252
* Unlike NGHTTP2_ERR_IGN_HTTP_HEADER, this does not invoke
5353
* nghttp2_on_invalid_header_callback.
5454
*/
55-
NGHTTP2_ERR_REMOVE_HTTP_HEADER = -106
55+
NGHTTP2_ERR_REMOVE_HTTP_HEADER = -106,
56+
/*
57+
* Cancel pushed stream.
58+
*/
59+
NGHTTP2_ERR_PUSH_CANCEL = -107,
5660
} nghttp2_internal_error;
5761

5862
#endif /* !defined(NGHTTP2_INT_H) */

0 commit comments

Comments
 (0)