mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-27 04:07:28 +00:00
Support for placeholders in fastcgi env vars.
This commit is contained in:
parent
2e84fe4504
commit
b1cd0bfeff
4 changed files with 67 additions and 21 deletions
|
|
@ -32,7 +32,7 @@ func TestNewReplacer(t *testing.T) {
|
|||
if got, want := v.replacements["{status}"], ""; got != want {
|
||||
t.Errorf("Expected status to NOT be set before Replace() is called; was: %s", got)
|
||||
}
|
||||
rep.Replace("foobar")
|
||||
rep.Replace("{foobar}")
|
||||
if got, want := v.replacements["{status}"], "200"; got != want {
|
||||
t.Errorf("Expected status to be %s, was: %s", want, got)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue