Skip to content

When WAGI converts string to HeaderValue, error rather than unwrap#3464

Merged
itowlson merged 1 commit intospinframework:mainfrom
itowlson:wagi-bad-response-header-errorify
Apr 16, 2026
Merged

When WAGI converts string to HeaderValue, error rather than unwrap#3464
itowlson merged 1 commit intospinframework:mainfrom
itowlson:wagi-bad-response-header-errorify

Conversation

@itowlson
Copy link
Copy Markdown
Collaborator

Minimal impact since the request handling task is already closing in on completion at this point (and the task level panics are translated into join errors), but just a bit tidier.

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
}
for h in parse_cgi_headers(String::from_utf8(out_headers)?).iter() {
use hyper::header::{CONTENT_TYPE, LOCATION};
match h.0.to_lowercase().as_str() {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of this diff is indent changes due to using a for loop instead of for_each combinator - not sure if there's a way to make it highlight the actual changes...

@itowlson itowlson merged commit cdd9ddb into spinframework:main Apr 16, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants