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

Commit

Permalink
fix 404 error
Browse files Browse the repository at this point in the history
  • Loading branch information
sihuan authored Feb 5, 2021
1 parent 9b05b19 commit 5dac9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async function handleRequest(request) {
if (error) {
const body = JSON.stringify(error)
switch (error.code) {
case 'ItemNotFound':
case 'itemNotFound':
return new Response(body, {
status: 404,
headers: {
Expand Down

0 comments on commit 5dac9f9

Please sign in to comment.