From ea2829ca2536798f0d8a5ec1f07d1c3584e63598 Mon Sep 17 00:00:00 2001 From: Angel M De Miguel Date: Mon, 13 Feb 2023 16:54:35 +0100 Subject: [PATCH] fix: send the query string to the workers --- src/workers/wasm_io.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/workers/wasm_io.rs b/src/workers/wasm_io.rs index f4ec38d8..fae878dc 100644 --- a/src/workers/wasm_io.rs +++ b/src/workers/wasm_io.rs @@ -42,8 +42,13 @@ impl<'a> WasmInput<'a> { params.insert(k.to_string(), v.to_string()); } + let url = match request.uri().path_and_query() { + Some(path) => path.as_str(), + None => request.uri().path(), + }; + Self { - url: request.uri().path(), + url, method: request.method().as_str(), headers: Self::build_headers_hash(request.headers()), body,