提交 c8e8cb5e 编写于 作者: T Tim Neutkens 提交者: Arunoda Susiripala

Check if parsedUrl is an object (#2066)

上级 761a965b
......@@ -56,7 +56,7 @@ export default class Server {
handleRequest (req, res, parsedUrl) {
// Parse url if parsedUrl not provided
if (!parsedUrl) {
if (!parsedUrl || typeof parsedUrl !== 'object') {
parsedUrl = parseUrl(req.url, true)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册