Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 9c36fa4

Browse files
committed
avoid setting a default path and query
Personally, I think defaulting to `/` if no path with query is set would be the expected behavior, but wasip2 contained tests explicitly testing against that behavior, so I disagree and commit Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 454747a commit 9c36fa4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

crates/wasi-http/src/p3/host/handler.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ where
9696
};
9797
if let Some(path_with_query) = path_with_query {
9898
uri = uri.path_and_query(path_with_query)
99-
} else {
100-
uri = uri.path_and_query("/")
10199
};
102100
let uri = match uri.build() {
103101
Ok(uri) => uri,

0 commit comments

Comments
 (0)