Skip to content

Commit d3d9fa8

Browse files
authored
fix: Remove username and password from URL after building Authorization header (#1581)
Keeping the username and password in the URL makes the whole HTTP client unusable because it just returns a 404.
1 parent 1869536 commit d3d9fa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/http-client/src/transport.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ impl<L> HttpTransportClientBuilder<L> {
264264
);
265265
}
266266
}
267+
let _ = url.set_password(None);
268+
let _ = url.set_username("");
267269

268270
Ok(HttpTransportClient {
269271
target: url.as_str().to_owned(),

0 commit comments

Comments
 (0)