counterfact 1.4.3 → 1.4.4

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.
@@ -130,6 +130,7 @@ export class Dispatcher {
130
130
  if (body !== undefined && headers.contentType !== "application/json") {
131
131
  throw new Error(`$.proxy() is currently limited to application/json requests. You tried to proxy to ${url} with a Content-Type of ${headers.contentType ?? "[unknown]"}. Please open an issue at https://github.com/pmcelhaney/counterfact/issues and prod me to fix this limitation.`);
132
132
  }
133
+ delete headers.host;
133
134
  const fetchResponse = await this.fetch(`${url}${req.path ?? ""}`, {
134
135
  body: body === undefined ? undefined : JSON.stringify(body),
135
136
  headers: new Headers(headers),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "counterfact",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "a library for building a fake REST API for testing",
5
5
  "type": "module",
6
6
  "main": "./dist/app.js",
@@ -73,7 +73,7 @@
73
73
  "eslint-plugin-prettier": "5.5.4",
74
74
  "eslint-plugin-unused-imports": "4.2.0",
75
75
  "husky": "9.1.7",
76
- "jest": "30.1.1",
76
+ "jest": "30.1.2",
77
77
  "jest-retries": "1.0.1",
78
78
  "node-mocks-http": "1.17.2",
79
79
  "rimraf": "6.0.1",