Skip to content

Unable to update response header within wrap_fn #59

Answered by robjtede
TommyLike asked this question in Q&A
Discussion options

You must be logged in to vote

This function requires the static string to only contain lowercase characters, numerals and symbols, as per the HTTP/2.0 specification and header names internal representation within this library.

- https://docs.rs/http/latest/http/header/struct.HeaderName.html#method.from_static

so

-                                      HeaderName::from_static("XSRF-TOKEN"),
+                                      HeaderName::from_static("xsrf-token"),

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TommyLike
Comment options

Answer selected by robjtede
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #58 on July 05, 2023 12:18.