diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2021-11-15 14:41:19 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2021-11-15 14:41:19 -0700 |
commit | b47af6ef04f818f41932e4152836d43a9be8fe07 (patch) | |
tree | cb765ed2842b58ef954f741e95174b0053021ec0 /caddyconfig/caddyfile/formatter_test.go | |
parent | e81369e2208e47d9650f9699ad8bc7692640b275 (diff) |
caddyfile: Copy input before parsing (fix #4422)
Diffstat (limited to 'caddyconfig/caddyfile/formatter_test.go')
-rw-r--r-- | caddyconfig/caddyfile/formatter_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/caddyconfig/caddyfile/formatter_test.go b/caddyconfig/caddyfile/formatter_test.go index 64cf6d2..8e5b368 100644 --- a/caddyconfig/caddyfile/formatter_test.go +++ b/caddyconfig/caddyfile/formatter_test.go @@ -180,6 +180,11 @@ d { }`, }, { + description: "env var placeholders with port", + input: `:{$PORT}`, + expect: `:{$PORT}`, + }, + { description: "comments", input: `#a "\n" |