Skip to content

Commit 41ff27a

Browse files
author
pooya parsa
committedJun 5, 2019
fix: ignore content-length header
1 parent e58983d commit 41ff27a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎docs/options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ Also helps making consistent requests in both SSR and Client Side code.
120120
121121
### `proxyHeadersIgnore`
122122

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

125125
Only efficient when `proxyHeaders` is set to true. Removes unwanted request headers to the API backend in SSR.

‎lib/module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function axiosModule(_moduleOptions) {
4141
debug: false,
4242
progress: true,
4343
proxyHeaders: true,
44-
proxyHeadersIgnore: ['accept', 'host', 'cf-ray', 'cf-connecting-ip'],
44+
proxyHeadersIgnore: ['accept', 'host', 'cf-ray', 'cf-connecting-ip', 'content-length'],
4545
proxy: false,
4646
retry: false,
4747
https: false,

0 commit comments

Comments
 (0)
Please sign in to comment.