Skip to content

Conversation

fchu
Copy link

@fchu fchu commented Sep 25, 2017

This happens because the Express router, changes the value of req.url to strip the mount point.
Using req.originalUrl should fix the issue ( Fixes #43 )
(see http://expressjs.com/en/4x/api.html#req.originalUrl for details)

@arihantdaga
Copy link

@jaredhanson i think we should merge this.. its causing error in digest auth and not giving any proper error message, but just bad request, it took me hours before finally digging down the code to later find that, that error was due to this...

@lkaybob
Copy link

lkaybob commented Oct 15, 2018

+1 on this PR. It also took me hours to debug

@beaulac
Copy link

beaulac commented Jan 30, 2020

This is a duplicate of #49 – either solution works, it would be nice to merge one of them though :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When express app is mounted at non-root endpoint, passport-http returns 400

4 participants