Skip to content

Commit 9f0a73e

Browse files
author
pooya parsa
committed
fix: don't check ext on query params (fixes #17)
1 parent 339c9c7 commit 9f0a73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function createServePlaceholder (_options) {
99

1010
return function servePlaceholderMiddleware (req, res, next) {
1111
// Get url from req object
12-
const { url } = req
12+
const url = req.url.split('?')[0]
1313

1414
// Get ext of requst url
1515
const ext = path.extname(url)

0 commit comments

Comments
 (0)