Commits

Audrius Kažukauskas committed 0c1d35e

Return 404 instead of redirecting to / in JS version.

Comments (0)

Files changed (1)

         return;
     }
     if (req.url !== '/') {
-        resp.writeHead(302, {
-            'Location': 'http://' + req.headers.host + '/'
-        });
+        resp.writeHead(404);
         resp.end();
         return;
     }