Update main.ts
Browse files
main.ts
CHANGED
@@ -392,7 +392,7 @@ function verifyApiKey(request: Request) {
|
|
392 |
});
|
393 |
}
|
394 |
|
395 |
-
if (
|
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: {
|