summaryrefslogtreecommitdiff
path: root/deps/nghttp2/lib/includes
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-11-15 23:47:45 +0800
committerAnna Henningsen <anna@addaleax.net>2019-11-18 15:45:52 +0100
commit7ae13c360b3a6e3c843432312f7b6f4f137d3cb9 (patch)
treecfba705333ba865ed5abaaa1f0f3132eaa337b92 /deps/nghttp2/lib/includes
parent20b7f4a5e93bc587976f19c198fa9291dca79674 (diff)
downloadandroid-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.h13
-rw-r--r--deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h4
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 */