From 77f233a4840afb8b081d12b083b19ed314fd975a Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 30 Jun 2020 11:42:55 -0600 Subject: caddyhttp: Corrected host label index check (fix #3502) --- modules/caddyhttp/replacer_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/caddyhttp/replacer_test.go') 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 @@ -107,6 +107,10 @@ eqp31wM9il1n+guTNyxJd+FzVAH+hCZE5K+tCgVDdVFUlDEHHbS/wqb2PSIoouLV input: "{http.request.host.labels.1}", expect: "example", }, + { + input: "{http.request.host.labels.2}", + expect: "", + }, { input: "{http.request.tls.cipher_suite}", expect: "TLS_AES_256_GCM_SHA384", -- cgit v1.2.3