| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f56ae67 commit 62515e1
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | cmake_minimum_required(VERSION 3.5.1) | |
| 2 | 2 | cmake_policy(SET CMP0069 NEW) | |
| 3 | 3 | ||
| 4 | - project(llhttp VERSION 9.1.2) | ||
| 4 | + project(llhttp VERSION 9.1.3) | ||
| 5 | 5 | include(GNUInstallDirs) | |
| 6 | 6 | ||
| 7 | 7 | set(CMAKE_C_STANDARD 99) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | 5 | #define LLHTTP_VERSION_MAJOR 9 | |
| 6 | 6 | #define LLHTTP_VERSION_MINOR 1 | |
| 7 | - #define LLHTTP_VERSION_PATCH 2 | ||
| 7 | + #define LLHTTP_VERSION_PATCH 3 | ||
| 8 | 8 | ||
| 9 | 9 | #ifndef INCLUDE_LLHTTP_ITSELF_H_ | |
| 10 | 10 | #define INCLUDE_LLHTTP_ITSELF_H_ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -126,7 +126,7 @@ void llhttp_reset(llhttp_t* parser) { | |||
| 126 | 126 | llhttp_type_t type = parser->type; | |
| 127 | 127 | const llhttp_settings_t* settings = parser->settings; | |
| 128 | 128 | void* data = parser->data; | |
| 129 | - uint8_t lenient_flags = parser->lenient_flags; | ||
| 129 | + uint16_t lenient_flags = parser->lenient_flags; | ||
| 130 | 130 | ||
| 131 | 131 | llhttp__internal_init(parser); | |
| 132 | 132 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,15 +43,17 @@ int llhttp__after_headers_complete(llhttp_t* parser, const char* p, | |||
| 43 | 43 | (parser->upgrade && (parser->method == HTTP_CONNECT || | |
| 44 | 44 | (parser->flags & F_SKIPBODY) || !hasBody)) || | |
| 45 | 45 | /* 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) | ||
| 50 | 47 | ) { | |
| 51 | 48 | /* Exit, the rest of the message is in a different protocol. */ | |
| 52 | 49 | return 1; | |
| 53 | 50 | } | |
| 54 | 51 | ||
| 52 | + if (parser->type == HTTP_RESPONSE && parser->status_code == 100) { | ||
| 53 | + /* No body, restart as the message is complete */ | ||
| 54 | + return 0; | ||
| 55 | + } | ||
| 56 | + | ||
| 55 | 57 | /* See RFC 2616 section 4.4 */ | |
| 56 | 58 | if ( | |
| 57 | 59 | parser->flags & F_SKIPBODY || /* response to a HEAD request */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments