diff options
-rw-r--r-- | c/wasi-http/0.2.0/echo-request/Makefile | 2 | ||||
-rw-r--r-- | c/wasi-http/0.2.0/echo-request/component.c | 1 | ||||
-rw-r--r-- | c/wasi-http/0.2.0/echo-request/wasi_snapshot_preview1.proxy.wasm | bin | 28355 -> 0 bytes |
3 files changed, 2 insertions, 1 deletions
diff --git a/c/wasi-http/0.2.0/echo-request/Makefile b/c/wasi-http/0.2.0/echo-request/Makefile index 5cfa09d..9dc5329 100644 --- a/c/wasi-http/0.2.0/echo-request/Makefile +++ b/c/wasi-http/0.2.0/echo-request/Makefile @@ -23,7 +23,7 @@ module.wasm: bindgen .PHONY: component.wasm: module.wasm - /home/andrew/src/c/wasm/git/wasm-tools/target/release/wasm-tools component new module.wasm --adapt wasi_snapshot_preview1.proxy.wasm -o component.wasm + /home/andrew/src/c/wasm/git/wasm-tools/target/release/wasm-tools component new module.wasm --adapt ../../adaptors/24.0.0/wasi_snapshot_preview1.proxy.wasm -o component.wasm clean: rm -f component.wasm module.wasm proxy* diff --git a/c/wasi-http/0.2.0/echo-request/component.c b/c/wasi-http/0.2.0/echo-request/component.c index 6f4c626..523bfa2 100644 --- a/c/wasi-http/0.2.0/echo-request/component.c +++ b/c/wasi-http/0.2.0/echo-request/component.c @@ -140,6 +140,7 @@ void exports_wasi_http_incoming_handler_handle( ex("wasi_http_types_method_fields_append() failed\n"); resp = wasi_http_types_constructor_outgoing_response(fields); + rerr.val.ok = resp; b_resp = wasi_http_types_borrow_outgoing_response(resp); ok = wasi_http_types_method_outgoing_response_body(b_resp, &body); diff --git a/c/wasi-http/0.2.0/echo-request/wasi_snapshot_preview1.proxy.wasm b/c/wasi-http/0.2.0/echo-request/wasi_snapshot_preview1.proxy.wasm Binary files differdeleted file mode 100644 index 5f71e3e..0000000 --- a/c/wasi-http/0.2.0/echo-request/wasi_snapshot_preview1.proxy.wasm +++ /dev/null |