diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-11-15 23:47:45 +0800 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-11-18 15:45:52 +0100 |
commit | 7ae13c360b3a6e3c843432312f7b6f4f137d3cb9 (patch) | |
tree | cfba705333ba865ed5abaaa1f0f3132eaa337b92 /deps/nghttp2/lib/includes | |
parent | 20b7f4a5e93bc587976f19c198fa9291dca79674 (diff) | |
download | android-node-v8-7ae13c360b3a6e3c843432312f7b6f4f137d3cb9.tar.gz android-node-v8-7ae13c360b3a6e3c843432312f7b6f4f137d3cb9.tar.bz2 android-node-v8-7ae13c360b3a6e3c843432312f7b6f4f137d3cb9.zip |
deps: update nghttp2 to 1.40.0
PR-URL: https://github.com/nodejs/node/pull/30493
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'deps/nghttp2/lib/includes')
-rw-r--r-- | deps/nghttp2/lib/includes/nghttp2/nghttp2.h | 13 | ||||
-rw-r--r-- | deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h | 4 |
2 files changed, 15 insertions, 2 deletions
diff --git a/deps/nghttp2/lib/includes/nghttp2/nghttp2.h b/deps/nghttp2/lib/includes/nghttp2/nghttp2.h index 313fb23daa..e3aeb9fed3 100644 --- a/deps/nghttp2/lib/includes/nghttp2/nghttp2.h +++ b/deps/nghttp2/lib/includes/nghttp2/nghttp2.h @@ -4769,6 +4769,19 @@ NGHTTP2_EXTERN int nghttp2_check_header_name(const uint8_t *name, size_t len); */ NGHTTP2_EXTERN int nghttp2_check_header_value(const uint8_t *value, size_t len); +/** + * @function + * + * Returns nonzero if the |value| which is supposed to the value of + * :authority or host header field is valid according to + * https://tools.ietf.org/html/rfc3986#section-3.2 + * + * |value| is valid if it merely consists of the allowed characters. + * In particular, it does not check whether |value| follows the syntax + * of authority. + */ +NGHTTP2_EXTERN int nghttp2_check_authority(const uint8_t *value, size_t len); + /* HPACK API */ struct nghttp2_hd_deflater; diff --git a/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h b/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h index 45bb0c9102..45d21e2645 100644 --- a/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h +++ b/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h @@ -29,7 +29,7 @@ * @macro * Version number of the nghttp2 library release */ -#define NGHTTP2_VERSION "1.39.2" +#define NGHTTP2_VERSION "1.40.0" /** * @macro @@ -37,6 +37,6 @@ * release. This is a 24 bit number with 8 bits for major number, 8 bits * for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203. */ -#define NGHTTP2_VERSION_NUM 0x012702 +#define NGHTTP2_VERSION_NUM 0x012800 #endif /* NGHTTP2VER_H */ |