-
Notifications
You must be signed in to change notification settings - Fork 228
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
Improve code snipper HTTP #304
Comments
@dimitropoulos |
@jaroga86 HTTP headers are case-insensitive in HTTP/1.1:
However in HTTP/2 they must be lowercased:
|
The user wants you to remove this line
and just keep the header as-is presumably because whatever server they're using is expecting those custom headers to be lower case. If you input " |
Describe the bug
When the HTTP code snippet is generated, it is generated with the first letter in uppercase and the format should be the same as in the header. A difference if the type CURL is selected maintains the correct format.
To Reproduce
Execute a example of request.
Clic in code snipper {}.
In code select HTTP.
Expected behavior
The expected behavior is to keep the same format as the header, as is done in the CURL.
Platform:
OS: Windows 10
vscode version: 1.66.2
extension version: 1.18.7
Example:
Screenshot type http:
Screenshot type curl:
best regards
The text was updated successfully, but these errors were encountered: