Skip to content

Commit

Permalink
Suggested fix for issue fraunhoferfokus#3 - The case where url.pathna…
Browse files Browse the repository at this point in the history
…me does not start with peer.prefix is not handled, i.e. no response is generated for this case.
  • Loading branch information
mwittig committed Jun 9, 2015
1 parent b8b48aa commit a7e7819
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 @@ -633,7 +633,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 a7e7819

Please sign in to comment.