diff options
Diffstat (limited to 'runtime/ops/http.rs')
-rw-r--r-- | runtime/ops/http.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ops/http.rs b/runtime/ops/http.rs index cd1ac9242..01658c802 100644 --- a/runtime/ops/http.rs +++ b/runtime/ops/http.rs @@ -222,7 +222,7 @@ async fn op_http_request_next( } else { Cow::Owned(conn_resource.addr.to_string()) }; - let path = req.uri().path_and_query().unwrap(); + let path = req.uri().path_and_query().map_or("/", |p| p.as_str()); format!("{}://{}{}", scheme, host, path) }; |