Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Log the internal redirects since they're not seen in the log.

  • Loading branch information...
commit 4411c0ed24158e395da9f90b53ff1ad4157eba15 1 parent 736ef63
@creationix authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/node-router.js
View
1  lib/node-router.js
@@ -145,6 +145,7 @@ exports.getServer = function getServer(logger) {
// Performs an internal redirect
res.innerRedirect = function innerRedirect(location) {
+ logger("Internal Redirect: " + req.url + " -> " + location);
req.url = location;
doRoute();
}
Please sign in to comment.
Something went wrong with that request. Please try again.