diff options
author | Fedor Indutny <fedor@indutny.com> | 2016-04-19 10:47:55 -0400 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-04-26 12:16:19 -0700 |
commit | 0a019e299f02a82aa16d6ce39ddbff678ab70abc (patch) | |
tree | 24bb60bdd8e7ff4f7312e43b741d84a297637b40 /deps/http_parser/http_parser.h | |
parent | 4dcb1a2654de0c394210098ea4a50d14c402bf6f (diff) | |
download | node-new-0a019e299f02a82aa16d6ce39ddbff678ab70abc.tar.gz |
deps: update to http-parser 2.7.0
Adds `2` as a return value of `on_headers_complete`, this mode will be
used to fix handling responses to `CONNECT` requests.
See: https://github.com/nodejs/node/pull/6198
PR-URL: https://github.com/nodejs/node/pull/6279
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/http_parser/http_parser.h')
-rw-r--r-- | deps/http_parser/http_parser.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/http_parser/http_parser.h b/deps/http_parser/http_parser.h index 0cee4cc85b..105ae510a8 100644 --- a/deps/http_parser/http_parser.h +++ b/deps/http_parser/http_parser.h @@ -26,8 +26,8 @@ extern "C" { /* Also update SONAME in the Makefile whenever you change these. */ #define HTTP_PARSER_VERSION_MAJOR 2 -#define HTTP_PARSER_VERSION_MINOR 6 -#define HTTP_PARSER_VERSION_PATCH 2 +#define HTTP_PARSER_VERSION_MINOR 7 +#define HTTP_PARSER_VERSION_PATCH 0 #include <sys/types.h> #if defined(_WIN32) && !defined(__MINGW32__) && \ @@ -77,6 +77,11 @@ typedef struct http_parser_settings http_parser_settings; * HEAD request which may contain 'Content-Length' or 'Transfer-Encoding: * chunked' headers that indicate the presence of a body. * + * Returning `2` from on_headers_complete will tell parser that it should not + * expect neither a body nor any futher responses on this connection. This is + * useful for handling responses to a CONNECT request which may not contain + * `Upgrade` or `Connection: upgrade` headers. + * * http_data_cb does not return data chunks. It will be called arbitrarily * many times for each string. E.G. you might get 10 callbacks for "on_url" * each providing just a few characters more data. |