0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-20 22:52:58 -05:00
caddy/caddytest/integration/caddyfile_adapt/uri_replace_brace_escape.txt
2024-01-13 20:24:03 +00:00

700 B

:9080 uri replace "}" %7D uri replace "{" %7B

respond "{query}"

{ "apps": { "http": { "servers": { "srv0": { "listen": [ ":9080" ], "routes": [ { "handle": [ { "handler": "rewrite", "uri_substring": [ { "find": "\}", "replace": "%7D" } ] }, { "handler": "rewrite", "uri_substring": [ { "find": "\{", "replace": "%7B" } ] }, { "body": "{http.request.uri.query}", "handler": "static_response" } ] } ] } } } } }