Skip to content

Commit

Permalink
fix: Proxy issues (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmeister committed Jan 3, 2024
1 parent e8a3d56 commit 595a646
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

# [2.0.0](https://github.com/kapetacom/sdk-nodejs-proxy-route/compare/v1.1.0...v2.0.0) (2023-12-13)


### Features

* Bump to 2 ([14af00c](https://github.com/kapetacom/sdk-nodejs-proxy-route/commit/14af00c17014e872200561c594867c2336056bce))
Expand Down
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 595a646

Please sign in to comment.