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 4302df1 + b580372 commit ac4cfd3Copy full SHA for ac4cfd3
src/hyperapp.rs
@@ -90,7 +90,9 @@ pub fn get_request_header(name: &str) -> Option<String> {
90
.and_then(|ctx| {
91
// Convert string to HeaderName using process_lib's re-exported type
92
let header_name = http::HeaderName::from_bytes(name.as_bytes()).ok()?;
93
- ctx.request.headers().get(&header_name)
+ ctx.request
94
+ .headers()
95
+ .get(&header_name)
96
.and_then(|value| value.to_str().ok())
97
.map(|s| s.to_string())
98
})
0 commit comments