Skip to content
This repository
Browse code

Fix crash on some requests.

There was a line missing, so once a request hit the second handler
it would throw an error.
  • Loading branch information...
commit 16eba6168b97f4cea2a3fc3b923639dc96c0b74f 1 parent 5ba4863
Hugh Kennedy hughsk authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  lib/handle.js
2  lib/handle.js
@@ -55,6 +55,8 @@ handlers.push(function (req, res) {
55 55
56 56 handlers.push(function (req, res) {
57 57 if (req.method !== 'GET') return false;
  58 +
  59 + var u = url.parse(req.url);
58 60 var m = u.pathname.match(/^\/(.+)\/HEAD$/);
59 61 if (!m) return false;
60 62 if (/\.\./.test(m[1])) return false;

0 comments on commit 16eba61

Please sign in to comment.
Something went wrong with that request. Please try again.