Skip to content

Commit

Permalink
fix: ignore content-length header
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Jun 5, 2019
1 parent e58983d commit 41ff27a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 41ff27a

Please sign in to comment.