Commit c8e8cb5e authored by Tim Neutkens's avatar Tim Neutkens Committed by Arunoda Susiripala

Check if parsedUrl is an object (#2066)

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment