Skip to content

Commit bbe8a15

Browse files
committed
Remove redundant basePath check
1 parent 7d7f8cb commit bbe8a15

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ function handleRequest (req, res) {
204204
if (req.method === 'OPTIONS' && headers['access-control-request-method']) {
205205
return ackPreflight(res, origin, headers['access-control-request-headers'])
206206
}
207-
if (!baseRgx.test(req.url)) return fourOhFour(res)
208207
let url = cleanPath(req.url)
209208
let matches = url.match(/^\/?(.+?)(\/|\?|$)/) || []
210209
let resource = resources[matches[1] || '']

0 commit comments

Comments
 (0)