request.url_for in a BaseHTTPMiddleware raises an exception #2522
Unanswered
Jdsleppy
asked this question in
Potential Issue
Replies: 2 comments 8 replies
-
I opened #2672 to address this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Request.url_for
looks intoself.scope["router"]
.In a
BaseHTTPMiddleware
, the"router"
key is missing from the request scope sourl_for()
always raises an exception.Beta Was this translation helpful? Give feedback.
All reactions