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 1135751 commit d9f895bCopy full SHA for d9f895b
src/hyperapp.rs
@@ -88,7 +88,9 @@ pub fn get_request_header(name: &str) -> Option<String> {
88
.current_http_context
89
.as_ref()
90
.and_then(|ctx| {
91
- ctx.request.headers().get(name)
+ ctx.request
92
+ .headers()
93
+ .get(name)
94
.and_then(|value| value.to_str().ok())
95
.map(|s| s.to_string())
96
})
0 commit comments