-
Notifications
You must be signed in to change notification settings - Fork 54
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
Automatic format response does not work for ContentType with charset #82
Comments
After more analysis of the code, it seems that the content type is found earlier in the code, but the output is still not formatted. Here is my rest response
curl options
|
I think the problem is in the multiple Adding the header
Will suppress the HTTP 100 repetition and the output will be formatted correctly. |
You're right that the extra |
@diepm Thank you for fast response |
In case the
ContentType: application/json;charset=UTF-8
, i.e. it contains thecharset
, the automatic format of response does not work.I think the proble is in the regex from
rest.vim:668
does not substitute the charsetcalling
returns
json;charset=UTF-8
and notjson
which is the key ins:vrc_auto_format_response_patterns
map.The text was updated successfully, but these errors were encountered: