Skip to content

Commit

Permalink
Revert "Revert "Suggested fix for issue fraunhoferfokus#3 - The case …
Browse files Browse the repository at this point in the history
…where url.pathname 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 Jan 12, 2017
1 parent 695e950 commit 1cbac1e
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 @@ -658,7 +658,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 1cbac1e

Please sign in to comment.