Skip to content

Commit

Permalink
Merge pull request #783 from Portkey-AI/fix/proxy-headers
Browse files Browse the repository at this point in the history
fix: headers to ignore list for proxy requests
  • Loading branch information
VisargD authored Nov 29, 2024
2 parents 9838eff + c1f5e79 commit a66c3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/handlerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function constructRequest(
const headersToAvoidForCloudflare = ['expect'];
const headersToIgnore = [
...(env(c).CUSTOM_HEADERS_TO_IGNORE ?? []),
headersToAvoidForCloudflare,
...headersToAvoidForCloudflare,
];
headersToIgnore.push('content-length');
Object.keys(requestHeaders).forEach((key: string) => {
Expand Down

0 comments on commit a66c3a3

Please sign in to comment.