-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
caddyhttp: Add {?query}
placeholder
#6714
Conversation
{prefixed_query}
placeholder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Built and tested real quick - looks like this has handily fixed the repro I found in https://caddy.community/t/preserving-query-string-during-rewrite/26538/4
LGTM!
Thanks for fixing the bug I stumbled across! |
Hear me out for a sec, what if it was named |
Hmmmmmmmmmmmmmm... well nothing else we have currently has special chars in the placeholder. Maybe we do that only for the Caddyfile shortcut? |
{prefixed_query}
placeholder{?query}
placeholder
Yeah, for the Caddyfile shortcut at least would be nice 👍 |
Yep already done @mholt 😅 |
3aced12
to
d5237a6
Compare
This is a two in one:
{http.request.uri.prefixed_query}
as the long-form and{?query}
as the Caddyfile shorthand.php_fastcgi
canonicalization redirect doesn't preserve the query 😬