Skip to content

Commit 8b576d9

Browse files
mjwbentonconico974
andauthored
fix content-length incorrectly set in proxyRequest (#532)
* fix content-length incorrectly set in proxyRequest * Create mjwbenton.md --------- Co-authored-by: conico974 <[email protected]>
1 parent b5bfb5d commit 8b576d9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/mjwbenton.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/aws": patch
3+
---
4+
5+
fix content-length incorrectly set in proxyRequest

packages/open-next/src/core/routing/util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ function filterHeadersForProxy(
181181
"x-cache",
182182
"transfer-encoding",
183183
"content-encoding",
184+
"content-length",
184185
];
185186
Object.entries(headers).forEach(([key, value]) => {
186187
const lowerKey = key.toLowerCase();

0 commit comments

Comments
 (0)