-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Could I change the charset in request header? #1298
Comments
Just to be sure, how do you change the charset? |
In the file index.html, add a line into function addApiKeyAuthorization below: |
That's not the way to set the content type of the request and it would be overridden. |
The consumes property is the Parameter Content Type in test section? I just tried to set the consumes as "application/json; charset=whatever", then the request header's Content-Type changed to "application/json;charset=UTF-8". |
That may be a different issue, but you cannot specify the content type directly as a header. |
There is an option in swagger-js to override the requst headers. You cannot override content-type in the UI like you mentioned. Please provide a sample spec, or more info and we can look at it. |
Hi!
My original Content-Type in request header is "applcation/json". When I try to add to Content-Type a charset other than utf-8, like "applcation/json; charset=gb2312", it always changes to "applcation/json; charset=UTF-8".
Could I change the charset somewhere? Somebody help!
The text was updated successfully, but these errors were encountered: