Replies: 1 comment 3 replies
-
Report the issue to the server. HTTP/1 requires case insensitive header names, and HTTP/2 and 3 make them all lowercase. This isn't something reqwest is likely to to change. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using the reqwest library, you need to customize some headers, such as
headers.insert("CSRF-token", HeaderValue::from_str("486845156165165").unwrap());
The header of this structure is lowercase("csrf-token": "486845156165165"), and the server rejected the request。
The server only accepts requests with the CSRF-token header, and does not accept similar headers such as csrf-token or Csrf-token.
What needs to be done to make it work
Beta Was this translation helpful? Give feedback.
All reactions