Skip to content

Commit fea8ab0

Browse files
committed
nit: fix variable name
1 parent 5b58041 commit fea8ab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/serve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ function handleRequest(req, serveDirectory) {
9595
// serve file list
9696
const prefix = parsedUrl.query.prefix || ''
9797
if (Array.isArray(prefix)) return { status: 400, content: 'bad request' }
98-
const perfixPath = `${serveDirectory}/${decodeURIComponent(prefix)}`
99-
return handleListing(perfixPath)
98+
const prefixPath = `${serveDirectory}/${decodeURIComponent(prefix)}`
99+
return handleListing(prefixPath)
100100
} else if (serveDirectory && pathname === '/api/store/get') {
101101
// serve file content
102102
const key = parsedUrl.query.key || ''

0 commit comments

Comments
 (0)