Skip to content

add UseRawPath option#353

Open
darrenparkinson wants to merge 1 commit into
julienschmidt:masterfrom
darrenparkinson:master
Open

add UseRawPath option#353
darrenparkinson wants to merge 1 commit into
julienschmidt:masterfrom
darrenparkinson:master

Conversation

@darrenparkinson
Copy link
Copy Markdown

@darrenparkinson darrenparkinson commented Jul 30, 2022

Slightly updated version for issues #208 and #284 based on original code in pr #209 from @halorium

@letmestudy
Copy link
Copy Markdown

letmestudy commented Jul 30, 2022 via email

@maqdev
Copy link
Copy Markdown

maqdev commented Aug 7, 2023

Any chances this get's accepted?

Copy link
Copy Markdown

@themavik themavik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UseRawPath switches lookup to req.URL.RawPath when non-empty, and getValue now runs url.PathUnescape on wildcard segments so %2F becomes / in Params. nit: the new Router field comment mostly duplicates net/url prose—a short pointer to URL.RawPath / EncodedPath would read cleaner.

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.

4 participants