Skip to content

Commit

Permalink
Null header
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-lippert committed Sep 26, 2023
1 parent 1c72811 commit e7548bb
Show file tree
Hide file tree
Showing 4 changed files with 600 additions and 855 deletions.
18 changes: 0 additions & 18 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,6 @@
"type": "node-terminal",
"request": "launch",
"command": "yarn dev --local true"
},
{
"name": "Cloudflare: debug client-side",
"type": "pwa-chrome",
"request": "launch",
"url": "http://localhost:8787"
},
{
"name": "Cloudflare: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "yarn dev --local true",
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "started server on .+, url: (https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
"semi": false
},
"devDependencies": {
"esbuild": "^0.19.2",
"eslint": "^8.48.0",
"jest": "^29.6.4",
"esbuild": "^0.19.3",
"eslint": "^8.50.0",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"wrangler": "^3.7.0"
"wrangler": "^3.9.1"
},
"dependencies": {
"bcp-47": "^2.1.0",
"geolib": "^3.3.4",
"punycode": "^2.3.0",
"qs": "^6.11.2",
"ua-parser-js": "^1.0.35"
"ua-parser-js": "^1.0.36"
}
}
2 changes: 1 addition & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
query = qs.parse(search?.substring(1))
apikey = query['apikey'] || headers['x-api-key'] || authHeader?.[1] || authHeader?.[0]
processes.push((async () => {
if (apikey) {
if (apikey && apikey != 'null') {
const userData = await env.APIKEYS.fetch(req.clone()).then(
(res) => res.ok && res.json()
)
Expand Down
Loading

0 comments on commit e7548bb

Please sign in to comment.