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.
2 parents b7b13cf + c389dfb commit bb71d6dCopy full SHA for bb71d6d
src/routing/ic/handler.rs
@@ -63,7 +63,8 @@ pub async fn handler(
63
// Inject Host header into inner HTTP request.
64
// HTTP2 lacks it, but canisters might expect it to be present.
65
if parts.headers.get(HOST).is_none() {
66
- if let Ok(v) = HeaderValue::from_bytes(ctx.authority.as_bytes()) {
+ let host = ctx.authority.to_string();
67
+ if let Ok(v) = HeaderValue::from_str(&host) {
68
parts.headers.insert(HOST, v);
69
}
70
0 commit comments