In case the ContentType: application/json;charset=UTF-8, i.e. it contains the charset, the automatic format of response does not work.
I think the proble is in the regex from rest.vim:668 does not substitute the charset
let fileType = substitute(contentType, '\v^.*/(.*\+)?(.*)$', '\2', 'g')
calling
substitute('application/json;charset=UTF-8', '\v^.*/(.*\+)?(.*)$', '\2', 'g')
returns json;charset=UTF-8 and not json which is the key in s:vrc_auto_format_response_patterns map.
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:668does not substitute the charsetcalling
returns
json;charset=UTF-8and notjsonwhich is the key ins:vrc_auto_format_response_patternsmap.