Skip to content

Replacer patch - #470

Merged
abiosoft merged 3 commits into
caddyserver:masterfrom
abiosoft:replacer-patch
Dec 30, 2015
Merged

abiosoft merged 3 commits into
caddyserver:masterfrom
abiosoft:replacer-patch

Conversation

@abiosoft

Copy link
Copy Markdown
  1. New values query_escaped, uri_escaped, path_escaped for the query escaped versions of the value to make them compatible and usable as query params.
  2. Ability to add custom values to a Replacer.
replacer := middleware.NewReplacer(...)
replacer.Set("custom_key", "custom_value") // can now replace {custom_key} 

@mholt

mholt commented Dec 30, 2015

Copy link
Copy Markdown
Member

Looks good to me!

abiosoft added a commit that referenced this pull request Dec 30, 2015
@abiosoft
abiosoft merged commit 55aa492 into caddyserver:master Dec 30, 2015
ProfessorLogout pushed a commit to ProfessorLogout/caddy that referenced this pull request Jun 15, 2025
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.

2 participants