We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f5591a commit 5b0d030Copy full SHA for 5b0d030
1 file changed
src/native/api.c
@@ -50,13 +50,18 @@ extern int wasm_on_headers_complete(llhttp_t * p);
50
extern int wasm_on_body(llhttp_t* p, const char* at, size_t length);
51
extern int wasm_on_message_complete(llhttp_t * p);
52
53
+static int wasm_on_headers_complete_wrap(llhttp_t* p) {
54
+ return wasm_on_headers_complete(p, p->status_code, p->upgrade,
55
+ llhttp_should_keep_alive(p));
56
+}
57
+
58
const llhttp_settings_t wasm_settings = {
59
wasm_on_message_begin,
60
wasm_on_url,
61
wasm_on_status,
62
wasm_on_header_field,
63
wasm_on_header_value,
- wasm_on_headers_complete,
64
+ wasm_on_headers_complete_wrap,
65
wasm_on_body,
66
wasm_on_message_complete,
67
NULL,
0 commit comments