@webdecoy/nextjs 0.28.0 → 0.29.0

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.
package/dist/index.js CHANGED
@@ -248,6 +248,7 @@ function createCaptchaHandler(options) {
248
248
  }
249
249
  }
250
250
  const headers = headersToRecord(req.headers);
251
+ if (!headers.host && !headers[":authority"]) headers.host = url.host;
251
252
  const result = await endpoints.handle({
252
253
  method: req.method,
253
254
  pathname: url.pathname,
package/dist/index.mjs CHANGED
@@ -226,6 +226,7 @@ function createCaptchaHandler(options) {
226
226
  }
227
227
  }
228
228
  const headers = headersToRecord(req.headers);
229
+ if (!headers.host && !headers[":authority"]) headers.host = url.host;
229
230
  const result = await endpoints.handle({
230
231
  method: req.method,
231
232
  pathname: url.pathname,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webdecoy/nextjs",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "description": "Web Decoy middleware for Next.js",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -54,7 +54,7 @@
54
54
  "url": "https://github.com/WebDecoy/node/issues"
55
55
  },
56
56
  "dependencies": {
57
- "@webdecoy/node": "^0.28.0"
57
+ "@webdecoy/node": "^0.29.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "next": ">=13.0.0"