Skip to content
Browse files
fix: ignore content-length header
  • Loading branch information
pi0 committed Jun 5, 2019
1 parent e58983d commit 41ff27a917685fce76e5ff326784dc95cc6fdd72
Showing with 2 additions and 2 deletions.
  1. +1 −1 docs/
  2. +1 −1 lib/module.js
@@ -120,6 +120,6 @@ Also helps making consistent requests in both SSR and Client Side code.
### `proxyHeadersIgnore`

* Default `['host', 'accept', 'cf-ray', 'cf-connecting-ip']`
* Default `['host', 'accept', 'cf-ray', 'cf-connecting-ip', 'content-length']`

Only efficient when `proxyHeaders` is set to true. Removes unwanted request headers to the API backend in SSR.
@@ -41,7 +41,7 @@ function axiosModule(_moduleOptions) {
debug: false,
progress: true,
proxyHeaders: true,
proxyHeadersIgnore: ['accept', 'host', 'cf-ray', 'cf-connecting-ip'],
proxyHeadersIgnore: ['accept', 'host', 'cf-ray', 'cf-connecting-ip', 'content-length'],
proxy: false,
retry: false,
https: false,

0 comments on commit 41ff27a

Please sign in to comment.