Skip to content

Commit

Permalink
sending query string to wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed May 18, 2024
1 parent 58efeed commit 14ac96e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fastn-ds/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@ impl DocumentStore {
let wasm_file = wasm_file.split_once(".wasm").unwrap().0;
let module = self.get_wasm(format!("{wasm_file}.wasm").as_str()).await?;

let wasm_url = if req.query_string().is_empty() {
wasm_url
} else {
format!("{wasm_url}/?{}", req.query_string())
};

Ok(fastn_ds::wasm::process_http_request(
ft_sys_shared::Request {
uri: wasm_url,
Expand Down

0 comments on commit 14ac96e

Please sign in to comment.