Skip to content

Commit ac4cfd3

Browse files
Merge branch 'set-response-body' of https://github.com/hyperware-ai/process_lib into set-response-body
2 parents 4302df1 + b580372 commit ac4cfd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hyperapp.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ pub fn get_request_header(name: &str) -> Option<String> {
9090
.and_then(|ctx| {
9191
// Convert string to HeaderName using process_lib's re-exported type
9292
let header_name = http::HeaderName::from_bytes(name.as_bytes()).ok()?;
93-
ctx.request.headers().get(&header_name)
93+
ctx.request
94+
.headers()
95+
.get(&header_name)
9496
.and_then(|value| value.to_str().ok())
9597
.map(|s| s.to_string())
9698
})

0 commit comments

Comments
 (0)