Skip to content

Commit

Permalink
fix: Config for proxy breaks certain requests
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmeister committed Jan 3, 2024
1 parent 420689b commit 8f3a318
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export const createProxyRoute = async (
https: urlParts.protocol === 'https',
timeout: 120000,
limit: '1000mb',
preserveHostHdr: false,
parseReqBody: false,
proxyReqOptDecorator: function (proxyReqOpts, srcReq) {
if (proxyReqOpts.headers) {
delete proxyReqOpts.headers['connection'];
Expand All @@ -46,7 +44,7 @@ export const createProxyRoute = async (

const out = Path.join(urlParts.pathname, path) + (query ? '?' + query : '');

console.log('Proxy request to %s > %s', req.url, out);
console.log('Proxy request to %s %s > %s', req.method, req.url, out);

return out;
},
Expand Down

0 comments on commit 8f3a318

Please sign in to comment.