pagekit / vue-resource

The HTTP client for Vue.js
MIT License
10.09k stars 1.6k forks source link

response.data fail to parse in Chrome 60+ #645

Closed iceprosurface closed 7 years ago

iceprosurface commented 7 years ago

Reproduction Link

then I find [doc](https://xhr.spec.whatwg.org/#the-getallresponseheaders()-method) which shows that header will be lowercase in future.

this breaks our application which become unusable.

Solution

here is my temporary measures.

vue-resource/src/http/interceptor/json.js

type = response.headers.get('Content-Type') || '';
type = response.headers.get('Content-Type') || response.headers.get('content-type') || '';
iceprosurface commented 7 years ago

it seem fixed in 1.3.0