From 597dee40fd33deb48c9870661635658d8e8496fd Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 1 Jun 2016 18:49:36 -0700 Subject: upgrade ext/http-parser --- ext/http-parser/http_parser.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ext/http-parser/http_parser.h') diff --git a/ext/http-parser/http_parser.h b/ext/http-parser/http_parser.h index e33c0620..105ae510 100644 --- a/ext/http-parser/http_parser.h +++ b/ext/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 1 +#define HTTP_PARSER_VERSION_MINOR 7 +#define HTTP_PARSER_VERSION_PATCH 0 #include #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. -- cgit v1.2.3