Skip to content

Commit 8914843

Browse files
authored
don't append trailing '?' when query string is empty (#657)
1 parent 92aecd2 commit 8914843

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ impl Adapter<HttpConnector, Body> {
952952

953953
let mut app_url = self.domain.clone();
954954
app_url.set_path(path);
955-
app_url.set_query(parts.uri.query());
955+
app_url.set_query(parts.uri.query().filter(|q| !q.is_empty()));
956956

957957
tracing::debug!(app_url = %app_url, req_headers = ?req_headers, "sending request to app server");
958958

0 commit comments

Comments
 (0)