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

Commit

Permalink
Merge pull request #96 from Si-Huan/patch-1
Browse files Browse the repository at this point in the history
fix 404 error
  • Loading branch information
spencerwooo authored Feb 5, 2021
2 parents 6a515c2 + 5dac9f9 commit 5b94f73
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 @@ -169,7 +169,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 5b94f73

Please sign in to comment.