@anonymilyhq/cli 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/forwarder.js +2 -1
  2. package/package.json +1 -1
package/lib/forwarder.js CHANGED
@@ -4,7 +4,7 @@ import { logger } from './logger.js';
4
4
 
5
5
  export function startForwarding(apiUrl, hookId, port) {
6
6
  const webhookUrl = `${apiUrl}/h/${hookId}`;
7
- const localUrl = `http://localhost:${port}`;
7
+ const localUrl = `http://127.0.0.1:${port}`;
8
8
 
9
9
  logger.success(pc.bold(`\nšŸš€ Anonymily CLI is running!`));
10
10
  logger.raw(`\nForwarding: ${pc.cyan(webhookUrl)} āž” ${pc.cyan(localUrl)}`);
@@ -20,6 +20,7 @@ export function startForwarding(apiUrl, hookId, port) {
20
20
  const forwardHeaders = { ...headers };
21
21
  delete forwardHeaders.host;
22
22
  delete forwardHeaders.connection;
23
+ delete forwardHeaders['content-length'];
23
24
 
24
25
  const queryString = new URLSearchParams(query || {}).toString();
25
26
  const fullLocalUrl = queryString ? `${localUrl}?${queryString}` : localUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anonymilyhq/cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CLI for Anonymily platform",
5
5
  "type": "module",
6
6
  "bin": {