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,