Skip to content

Commit

Permalink
style: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Dec 11, 2023
1 parent f8f3183 commit e092210
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ export const createApp = (
'Access-Control-Allow-Headers',
'Content-Type, Authorization, swarm-postage-batch-id, swarm-deferred-upload',
)

if (req.method === 'OPTIONS') {
res.sendStatus(200)

return
}
next()
Expand Down

0 comments on commit e092210

Please sign in to comment.