mirror of https://github.com/sundowndev/http.git
parent
303168d372
commit
454807c5ab
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -16,7 +16,7 @@ export default {
|
|||
},
|
||||
|
||||
httpEncoding() {
|
||||
return this.$http._defaults.headers['Accept-Encoding']
|
||||
return this.$http._defaults.headers['accept-encoding']
|
||||
}
|
||||
},
|
||||
fetch({ app, route }) {
|
||||
|
|
Loading…
Reference in New Issue