Skip to content

Commit c6d650f

Browse files
nodejs-github-botmhdawson
authored andcommitted
deps: update llhttp to 9.1.3
PR-URL: #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>
1 parent 2c4a332 commit c6d650f

File tree

6 files changed

+362
-291
lines changed

6 files changed

+362
-291
lines changed

deps/llhttp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.5.1)
22
cmake_policy(SET CMP0069 NEW)
33

4-
project(llhttp VERSION 9.1.2)
4+
project(llhttp VERSION 9.1.3)
55
include(GNUInstallDirs)
66

77
set(CMAKE_C_STANDARD 99)

deps/llhttp/include/llhttp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#define LLHTTP_VERSION_MAJOR 9
66
#define LLHTTP_VERSION_MINOR 1
7-
#define LLHTTP_VERSION_PATCH 2
7+
#define LLHTTP_VERSION_PATCH 3
88

99
#ifndef INCLUDE_LLHTTP_ITSELF_H_
1010
#define INCLUDE_LLHTTP_ITSELF_H_

deps/llhttp/src/api.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void llhttp_reset(llhttp_t* parser) {
126126
llhttp_type_t type = parser->type;
127127
const llhttp_settings_t* settings = parser->settings;
128128
void* data = parser->data;
129-
uint8_t lenient_flags = parser->lenient_flags;
129+
uint16_t lenient_flags = parser->lenient_flags;
130130

131131
llhttp__internal_init(parser);
132132

deps/llhttp/src/http.c

+6-4
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,17 @@ int llhttp__after_headers_complete(llhttp_t* parser, const char* p,
4343
(parser->upgrade && (parser->method == HTTP_CONNECT ||
4444
(parser->flags & F_SKIPBODY) || !hasBody)) ||
4545
/* See RFC 2616 section 4.4 - 1xx e.g. Continue */
46-
(
47-
parser->type == HTTP_RESPONSE &&
48-
(parser->status_code == 100 || parser->status_code == 101)
49-
)
46+
(parser->type == HTTP_RESPONSE && parser->status_code == 101)
5047
) {
5148
/* Exit, the rest of the message is in a different protocol. */
5249
return 1;
5350
}
5451

52+
if (parser->type == HTTP_RESPONSE && parser->status_code == 100) {
53+
/* No body, restart as the message is complete */
54+
return 0;
55+
}
56+
5557
/* See RFC 2616 section 4.4 */
5658
if (
5759
parser->flags & F_SKIPBODY || /* response to a HEAD request */

0 commit comments

Comments
 (0)