summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/replacer_test.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-06-30 11:42:55 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-06-30 11:43:01 -0600
commit77f233a4840afb8b081d12b083b19ed314fd975a (patch)
treeb7c2e2895ce143315598469e07cec15e044c672d /modules/caddyhttp/replacer_test.go
parentddd690de4cc133bc728f765b2492ccb54f9d84ca (diff)
caddyhttp: Corrected host label index check (fix #3502)
Diffstat (limited to 'modules/caddyhttp/replacer_test.go')
-rw-r--r--modules/caddyhttp/replacer_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/caddyhttp/replacer_test.go b/modules/caddyhttp/replacer_test.go
index bc18c5a..49167ee 100644
--- a/modules/caddyhttp/replacer_test.go
+++ b/modules/caddyhttp/replacer_test.go
@@ -108,6 +108,10 @@ eqp31wM9il1n+guTNyxJd+FzVAH+hCZE5K+tCgVDdVFUlDEHHbS/wqb2PSIoouLV
expect: "example",
},
{
+ input: "{http.request.host.labels.2}",
+ expect: "<empty>",
+ },
+ {
input: "{http.request.tls.cipher_suite}",
expect: "TLS_AES_256_GCM_SHA384",
},