We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8f7c6 commit 72bbd22Copy full SHA for 72bbd22
src/client/legacy/client.rs
@@ -302,7 +302,7 @@ where
302
let hostname = uri.host().expect("authority implies host");
303
if let Some(port) = get_non_default_port(&uri) {
304
let s = format!("{hostname}:{port}");
305
- HeaderValue::from_str(&s)
+ HeaderValue::from_maybe_shared(bytes::Bytes::from(s))
306
} else {
307
HeaderValue::from_str(hostname)
308
}
0 commit comments