hzruo commited on
Commit
8c19990
·
verified ·
1 Parent(s): 4426e3b

Update main.ts

Browse files
Files changed (1) hide show
  1. main.ts +1 -1
main.ts CHANGED
@@ -392,7 +392,7 @@ function verifyApiKey(request: Request) {
392
  });
393
  }
394
 
395
- if (apiKey !== VALID_API_KEY) {
396
  return new Response(JSON.stringify({ error: 'Invalid API key' }), {
397
  status: 401,
398
  headers: {
 
392
  });
393
  }
394
 
395
+ if (authorization !== VALID_API_KEY) {
396
  return new Response(JSON.stringify({ error: 'Invalid API key' }), {
397
  status: 401,
398
  headers: {