Skip to content

Commit f7530e4

Browse files
committed
fix urlparse
1 parent 8357445 commit f7530e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ app.use((req, res, next) => {
2525
return res.status(200).end()
2626
}
2727

28-
url = new URL(req.url)
28+
url = URL.parse(req.url, `${req.protocol}://${req.hostname}`)
2929

3030
log.logger.info(`${req.method} ${url.pathname} ${url.search}`)
3131
next()

0 commit comments

Comments
 (0)