Skip to content
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

Add config option to control auto Camel-Case feature when previewOption is set to exchange #435

Closed
wujunchuan opened this issue Oct 22, 2019 · 3 comments

Comments

@wujunchuan
Copy link

Add a extension config option to control the custom request header Camel-Case

For example there is a HTTP request 👇

@HOST=http://localhost:8888
GET {{HOST}}/collect/mockindex/ HTTP/1.1
auth: "Coll 2.bQk0e2sNddsmNdNdYcaTPszg"
lang: "zh"

Current

GET http://localhost:8888/collect/mockindex/ HTTP/1.1
Auth: "Coll 2.bQk0e2sNddsmNdNdYcaTPszg"
Lang: "zh"
User-Agent: vscode-restclient
Accept-Encoding: gzip

The custom HTTP headers auth and lang will auto uppercase its first letter

Except

GET http://localhost:8888/collect/mockindex/ HTTP/1.1
auth: "Coll 2.bQk0e2sNddsmNdNdYcaTPszg"
lang: "zh"
User-Agent: vscode-restclient
Accept-Encoding: gzip
@Huachao Huachao changed the title Add config option to control auto Camel-Case feature Add config option to control auto Camel-Case feature when previewOption is set to exchange Oct 22, 2019
Huachao added a commit that referenced this issue Oct 31, 2019
@Huachao
Copy link
Owner

Huachao commented Oct 31, 2019

@wujunchuan I have fixed the issue and will always preserve the outgoing request headers case.

@Huachao Huachao closed this as completed Oct 31, 2019
@Huachao
Copy link
Owner

Huachao commented Nov 20, 2019

@wujunchuan you can try the latest version 0.23.0 to verify it

@wujunchuan
Copy link
Author

@Huachao works well, it will not puzzle me again now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants