Skip to content

Commit ec0d8da

Browse files
authored
deps: upgrade llhttp to 6.0.9
PR-URL: #44344 Fixes: #43115 Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 12e62ea commit ec0d8da

File tree

4 files changed

+703
-290
lines changed

4 files changed

+703
-290
lines changed

deps/llhttp/CMakeLists.txt

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

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

77
set(CMAKE_C_STANDARD 99)
88

99
# By default build in relwithdebinfo type, supports both lowercase and uppercase
1010
if(NOT CMAKE_CONFIGURATION_TYPES)
11-
set(allowableBuileTypes DEBUG RELEASE RELWITHDEBINFO MINSIZEREL)
12-
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${allowableBuileTypes}")
11+
set(allowableBuildTypes DEBUG RELEASE RELWITHDEBINFO MINSIZEREL)
12+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${allowableBuildTypes}")
1313
if(NOT CMAKE_BUILD_TYPE)
1414
set(CMAKE_BUILD_TYPE RELWITHDEBINFO CACHE STRING "" FORCE)
1515
else()
1616
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)
17-
if(NOT CMAKE_BUILD_TYPE IN_LIST allowableBuileTypes)
18-
message(FATEL_ERROR "Invalid build type: ${CMAKE_BUILD_TYPE}")
17+
if(NOT CMAKE_BUILD_TYPE IN_LIST allowableBuildTypes)
18+
message(FATAL_ERROR "Invalid build type: ${CMAKE_BUILD_TYPE}")
1919
endif()
2020
endif()
2121
endif()

deps/llhttp/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,15 @@ make
107107

108108
* Python: [pallas/pyllhttp][8]
109109
* Ruby: [metabahn/llhttp][9]
110+
* Rust: [JackLiar/rust-llhttp][10]
110111

111112
### Using with CMake
112113

113114
If you want to use this library in a CMake project you can use the snippet below.
114115

115116
```
116117
FetchContent_Declare(llhttp
117-
URL "https://github.com/nodejs/llhttp/releases/download/v6.0.5/llhttp-release-v6.0.5.tar.gz") # Using version 6.0.5
118+
URL "https://github.com/nodejs/llhttp/archive/refs/tags/v6.0.5.tar.gz") # Using version 6.0.5
118119
119120
FetchContent_MakeAvailable(llhttp)
120121
@@ -178,3 +179,4 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
178179
[7]: https://github.com/nodejs/node
179180
[8]: https://github.com/pallas/pyllhttp
180181
[9]: https://github.com/metabahn/llhttp
182+
[10]: https://github.com/JackLiar/rust-llhttp

deps/llhttp/include/llhttp.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#define LLHTTP_VERSION_MAJOR 6
55
#define LLHTTP_VERSION_MINOR 0
6-
#define LLHTTP_VERSION_PATCH 7
6+
#define LLHTTP_VERSION_PATCH 9
77

88
#ifndef LLHTTP_STRICT_MODE
99
# define LLHTTP_STRICT_MODE 0
@@ -102,7 +102,8 @@ enum llhttp_lenient_flags {
102102
LENIENT_HEADERS = 0x1,
103103
LENIENT_CHUNKED_LENGTH = 0x2,
104104
LENIENT_KEEP_ALIVE = 0x4,
105-
LENIENT_TRANSFER_ENCODING = 0x8
105+
LENIENT_TRANSFER_ENCODING = 0x8,
106+
LENIENT_VERSION = 0x10
106107
};
107108
typedef enum llhttp_lenient_flags llhttp_lenient_flags_t;
108109

0 commit comments

Comments
 (0)