Skip to content
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

Merged
merged 3 commits into from
Dec 2, 2024
Merged

caddyhttp: Add {?query} placeholder #6714

merged 3 commits into from
Dec 2, 2024

Conversation

francislavoie
Copy link
Member

@francislavoie francislavoie commented Nov 28, 2024

This is a two in one:

@francislavoie francislavoie added bug 🐞 Something isn't working feature ⚙️ New feature or request labels Nov 28, 2024
@francislavoie francislavoie added this to the v2.9.0-beta.4 milestone Nov 28, 2024
@francislavoie francislavoie changed the title caddyhttp: Add {prefixed_query} placeholder caddyhttp: Add {prefixed_query} placeholder Nov 28, 2024
Copy link
Collaborator

@whitestrake whitestrake left a 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!

@gingerbeardman
Copy link

gingerbeardman commented Nov 28, 2024

Thanks for fixing the bug I stumbled across!

@mholt
Copy link
Member

mholt commented Nov 28, 2024

Hear me out for a sec, what if it was named {?query}?

@francislavoie
Copy link
Member Author

Hmmmmmmmmmmmmmm... well nothing else we have currently has special chars in the placeholder. Maybe we do that only for the Caddyfile shortcut?

@francislavoie francislavoie changed the title caddyhttp: Add {prefixed_query} placeholder caddyhttp: Add {?query} placeholder Nov 28, 2024
@mholt
Copy link
Member

mholt commented Dec 1, 2024

Yeah, for the Caddyfile shortcut at least would be nice 👍

@francislavoie
Copy link
Member Author

Yep already done @mholt 😅

@francislavoie francislavoie merged commit b116dce into master Dec 2, 2024
33 checks passed
@francislavoie francislavoie deleted the prefixed-query branch December 2, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working feature ⚙️ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Query placeholder that includes ?
4 participants