mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
deps: update llhttp to 9.1.3
PR-URL: https://github.com/nodejs/node/pull/50080 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
1 parent
48dbde71d8
commit
ac5c0f2ac4
6 files changed
+964
-296
No files matched your search
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.5.1)
|
||||
cmake_policy(SET CMP0069 NEW)
|
||||
|
||||
project(llhttp VERSION 8.1.1)
|
||||
project(llhttp VERSION 9.1.3)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
|
||||
Vendored
+1
-5
@@ -3,11 +3,7 @@
|
||||
|
||||
#define LLHTTP_VERSION_MAJOR 8
|
||||
#define LLHTTP_VERSION_MINOR 1
|
||||
#define LLHTTP_VERSION_PATCH 1
|
||||
|
||||
#ifndef LLHTTP_STRICT_MODE
|
||||
# define LLHTTP_STRICT_MODE 0
|
||||
#endif
|
||||
#define LLHTTP_VERSION_PATCH 3
|
||||
|
||||
#ifndef INCLUDE_LLHTTP_ITSELF_H_
|
||||
#define INCLUDE_LLHTTP_ITSELF_H_
|
||||
|
||||
Vendored
+1
-1
@@ -126,7 +126,7 @@ void llhttp_reset(llhttp_t* parser) {
|
||||
llhttp_type_t type = parser->type;
|
||||
const llhttp_settings_t* settings = parser->settings;
|
||||
void* data = parser->data;
|
||||
uint8_t lenient_flags = parser->lenient_flags;
|
||||
uint16_t lenient_flags = parser->lenient_flags;
|
||||
|
||||
llhttp__internal_init(parser);
|
||||
|
||||
|
||||
Vendored
+23
-3
@@ -39,13 +39,33 @@ int llhttp__after_headers_complete(llhttp_t* parser, const char* p,
|
||||
int hasBody;
|
||||
|
||||
hasBody = parser->flags & F_CHUNKED || parser->content_length > 0;
|
||||
if (parser->upgrade && (parser->method == HTTP_CONNECT ||
|
||||
(parser->flags & F_SKIPBODY) || !hasBody)) {
|
||||
if (
|
||||
(parser->upgrade && (parser->method == HTTP_CONNECT ||
|
||||
(parser->flags & F_SKIPBODY) || !hasBody)) ||
|
||||
/* See RFC 2616 section 4.4 - 1xx e.g. Continue */
|
||||
(parser->type == HTTP_RESPONSE && parser->status_code == 101)
|
||||
) {
|
||||
/* Exit, the rest of the message is in a different protocol. */
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (parser->flags & F_SKIPBODY) {
|
||||
if (parser->type == HTTP_RESPONSE && parser->status_code == 100) {
|
||||
/* No body, restart as the message is complete */
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* See RFC 2616 section 4.4 */
|
||||
if (
|
||||
parser->flags & F_SKIPBODY || /* response to a HEAD request */
|
||||
(
|
||||
parser->type == HTTP_RESPONSE && (
|
||||
parser->status_code == 102 || /* Processing */
|
||||
parser->status_code == 103 || /* Early Hints */
|
||||
parser->status_code == 204 || /* No Content */
|
||||
parser->status_code == 304 /* Not Modified */
|
||||
)
|
||||
)
|
||||
) {
|
||||
return 0;
|
||||
} else if (parser->flags & F_CHUNKED) {
|
||||
/* chunked encoding - ignore Content-Length header, prepare for a chunk */
|
||||
|
||||
Vendored
+935
-283
File diff suppressed because it is too large.
Load diff
@@ -19,7 +19,7 @@ This a list of all the dependencies:
|
||||
* [histogram 0.11.8][]
|
||||
* [icu-small 73.2][]
|
||||
* [libuv 1.46.0][]
|
||||
* [llhttp 8.1.0][]
|
||||
* [llhttp 9.1.3][]
|
||||
* [minimatch 9.0.3][]
|
||||
* [nghttp2 1.58.0][]
|
||||
* [nghttp3 0.7.0][]
|
||||
@@ -212,7 +212,7 @@ The [libuv](https://github.com/libuv/libuv) dependency is a
|
||||
multi-platform support library with a focus on asynchronous I/O.
|
||||
It was primarily developed for use by Node.js.
|
||||
|
||||
### llhttp 8.1.0
|
||||
### llhttp 9.1.3
|
||||
|
||||
The [llhttp](https://github.com/nodejs/llhttp) dependency is
|
||||
the http parser used by Node.js.
|
||||
@@ -330,7 +330,7 @@ performance improvements not currently available in standard zlib.
|
||||
[histogram 0.11.8]: #histogram-0118
|
||||
[icu-small 73.2]: #icu-small-732
|
||||
[libuv 1.46.0]: #libuv-1460
|
||||
[llhttp 8.1.0]: #llhttp-810
|
||||
[llhttp 9.1.3]: #llhttp-913
|
||||
[maintaining-V8]: ./maintaining-V8.md
|
||||
[maintaining-cjs-module-lexer]: ./maintaining-cjs-module-lexer.md
|
||||
[maintaining-http]: ./maintaining-http.md
|
||||
|
||||
Reference in new issue
Block a user