-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use lowercase header keys while making requests #3795
base: main
Are you sure you want to change the base?
Conversation
Just checked the behavior of
|
@lohxt1 More details on how this is solving the issue would be helpful. |
Interestingly, according to RFC9110 Section 5.1 (obsoletes RFC7230) these so-called field names are "case-insensitive". The HTTP Field Name Registry, in turn, capitalizes the first character of every word and at times the whole field name. By digging through the Axios sources, it seems like they lowercase any field name in From that perspective, it shouldn't make any difference. Yet most likely this is not the whole story. The npm:form-data package seems to use lowercase headers, though (see: |
#3723
https://datatracker.ietf.org/doc/html/rfc7230#section-3.2
workaround for the above issue:
use
content-type
instead ofContent-Type