diff --git a/src/lib.rs b/src/lib.rs index 48ff47b9..9d77b258 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -952,7 +952,7 @@ impl Adapter { let mut app_url = self.domain.clone(); app_url.set_path(path); - app_url.set_query(parts.uri.query()); + app_url.set_query(parts.uri.query().filter(|q| !q.is_empty())); tracing::debug!(app_url = %app_url, req_headers = ?req_headers, "sending request to app server");