Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expressFormat use originalUrl if available #71

Merged
merged 1 commit into from
Apr 9, 2015

Commits on Apr 9, 2015

  1. expressFormat use originalUrl if available

    When using nested routers in e.g. express, the router modifies req.url to only contain the router relevant url part. For that matter, when logging req.url, you wouldn't see the complete original url. Express adds req.originalUrl which contains the url that was called by the client. If this property is available, it should be used over req.url in the log format
    benkroeger authored and Jonathan Lomas committed Apr 9, 2015
    Configuration menu
    Copy the full SHA
    39702b3 View commit details
    Browse the repository at this point in the history