Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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...
1 parent 5ba4863 commit 16eba6168b97f4cea2a3fc3b923639dc96c0b74f @hughsk hughsk committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/handle.js
2  lib/handle.js
@@ -55,6 +55,8 @@ handlers.push(function (req, res) {
handlers.push(function (req, res) {
if (req.method !== 'GET') return false;
+ var u = url.parse(req.url);
var m = u.pathname.match(/^\/(.+)\/HEAD$/);
if (!m) return false;
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.