Skip to content

Commit

Permalink
Revert "Revert "Suggested fix for issue #3 - The case where url.pathn…
Browse files Browse the repository at this point in the history
…ame does not start with peer.prefix is not handled, i.e. no response is generated for this case.""

This reverts commit f821f9c.
  • Loading branch information
mwittig committed Oct 1, 2015
1 parent ede0cb1 commit f261fdd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/peer-upnp.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,11 @@ var registerHTTPHandler = function(peer){
rsp.end("Not found");
}
}
});
else {
rsp.statusCode = 404;
rsp.end("Not found");
}
})
};
var unregisterHTTPHandler = function(peer){
if (peer.server && peer.httpHandler) {
Expand Down

0 comments on commit f261fdd

Please sign in to comment.