Commits

Audrius Kažukauskas committed 9d91b17

Allow HEAD requests in JS version.

Comments (0)

Files changed (1)

 }
 
 require('http').createServer(function (req, resp) {
-    if (req.method !== 'GET') {
+    if (!req.method.match(/^(GET|HEAD)$/)) {
         resp.writeHead(405);
         resp.end();
         return;