Skip to content
This repository was archived by the owner on Jan 1, 2022. It is now read-only.

Commit 5b94f73

Browse files
authored
Merge pull request #96 from Si-Huan/patch-1
fix 404 error
2 parents 6a515c2 + 5dac9f9 commit 5b94f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async function handleRequest(request) {
169169
if (error) {
170170
const body = JSON.stringify(error)
171171
switch (error.code) {
172-
case 'ItemNotFound':
172+
case 'itemNotFound':
173173
return new Response(body, {
174174
status: 404,
175175
headers: {

0 commit comments

Comments
 (0)