Skip to content

Commit a5d46d5

Browse files
committed
release: 9.1.2
1 parent 4333cc5 commit a5d46d5

File tree

4 files changed

+501
-430
lines changed

4 files changed

+501
-430
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
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.1)
4+
project(llhttp VERSION 9.1.2)
55
include(GNUInstallDirs)
66

77
set(CMAKE_C_STANDARD 99)

include/llhttp.h

Lines changed: 1 addition & 1 deletion
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 1
7+
#define LLHTTP_VERSION_PATCH 2
88

99
#ifndef INCLUDE_LLHTTP_ITSELF_H_
1010
#define INCLUDE_LLHTTP_ITSELF_H_

src/http.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ 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-
(parser->type == HTTP_RESPONSE && parser->status_code / 100 == 1)
46+
(
47+
parser->type == HTTP_RESPONSE &&
48+
(parser->status_code == 100 || parser->status_code == 101)
49+
)
4750
) {
4851
/* Exit, the rest of the message is in a different protocol. */
4952
return 1;
@@ -54,6 +57,8 @@ int llhttp__after_headers_complete(llhttp_t* parser, const char* p,
5457
parser->flags & F_SKIPBODY || /* response to a HEAD request */
5558
(
5659
parser->type == HTTP_RESPONSE && (
60+
parser->status_code == 102 || /* Processing */
61+
parser->status_code == 103 || /* Early Hints */
5762
parser->status_code == 204 || /* No Content */
5863
parser->status_code == 304 /* Not Modified */
5964
)

0 commit comments

Comments
 (0)