You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we could have something like ctx.request.original.path == ctx.path (with a less verbose name hopefully haha), that way you wouldn't have to "reset" ctx.rewrite if it happens to get changed back to the original again, not sure. I don't think there's a huge huge use-case for it, logging is usually done in the most upstream middleware etc. What's your use-case?
hmm, yeah. it gets a little weird when you have mounted apps, maybe with their own logging etc. that's my use-case at least. having a way to get at the original path would work.
would be useful to have a flag to indicate that a path has been rewritten. maybe
ctx.rewrite = true
or similar. would you accept a PR?The text was updated successfully, but these errors were encountered: