diff --git a/include/llhttp.h b/include/llhttp.h index 2ecba186..b58be5d1 100644 --- a/include/llhttp.h +++ b/include/llhttp.h @@ -3,7 +3,7 @@ #define LLHTTP_VERSION_MAJOR 6 #define LLHTTP_VERSION_MINOR 0 -#define LLHTTP_VERSION_PATCH 2 +#define LLHTTP_VERSION_PATCH 3 #ifndef LLHTTP_STRICT_MODE # define LLHTTP_STRICT_MODE 0 diff --git a/src/api.c b/src/api.c index 36f42fdc..04e57fd7 100644 --- a/src/api.c +++ b/src/api.c @@ -50,13 +50,18 @@ extern int wasm_on_headers_complete(llhttp_t * p); extern int wasm_on_body(llhttp_t* p, const char* at, size_t length); extern int wasm_on_message_complete(llhttp_t * p); +static int wasm_on_headers_complete_wrap(llhttp_t* p) { + return wasm_on_headers_complete(p, p->status_code, p->upgrade, + llhttp_should_keep_alive(p)); +} + const llhttp_settings_t wasm_settings = { wasm_on_message_begin, wasm_on_url, wasm_on_status, wasm_on_header_field, wasm_on_header_value, - wasm_on_headers_complete, + wasm_on_headers_complete_wrap, wasm_on_body, wasm_on_message_complete, NULL,