fix: lowercase `accept-encoding` header (#43)

+ update docs
master
Sébastien Chopin 2019-05-21 20:06:47 +02:00 committed by Pooya Parsa
parent 303168d372
commit 454807c5ab
3 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ When directing requests at a url protected by CloudFlare's CDN you should set th
### `proxyHeadersIgnore`
* Default `['host', 'accept']`
* Default `['accept', 'host', 'cf-ray', 'cf-connecting-ip']`
Only efficient when `proxyHeaders` is set to true. Removes unwanted request headers to the API backend in SSR.

View File

@ -108,7 +108,7 @@ export default (ctx, inject) => {
if (process.server) {
// Don't accept brotli encoding because Node can't parse it
defaults.headers['Accept-Encoding'] = 'gzip, deflate'
defaults.headers['accept-encoding'] = 'gzip, deflate'
}
// Create new HTTP instance

View File

@ -16,7 +16,7 @@ export default {
},
httpEncoding() {
return this.$http._defaults.headers['Accept-Encoding']
return this.$http._defaults.headers['accept-encoding']
}
},
fetch({ app, route }) {