From 0fc47e8357af5ccd6f800819722229b1a279e5b5 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 2 Oct 2020 15:23:52 -0600 Subject: map: Apply default if mapped output is nil --- caddytest/integration/map_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'caddytest') diff --git a/caddytest/integration/map_test.go b/caddytest/integration/map_test.go index dc077ee..aa535ec 100644 --- a/caddytest/integration/map_test.go +++ b/caddytest/integration/map_test.go @@ -18,7 +18,7 @@ func TestMap(t *testing.T) { localhost:9080 { map {http.request.method} {dest-1} {dest-2} { - default unknown + default unknown1 unknown2 ~G.T get-called POST post-called foobar } @@ -30,7 +30,7 @@ func TestMap(t *testing.T) { `, "caddyfile") // act and assert - tester.AssertGetResponse("http://localhost:9080/version", 200, "hello from localhost get-called ") + tester.AssertGetResponse("http://localhost:9080/version", 200, "hello from localhost get-called unknown2") tester.AssertPostResponseBody("http://localhost:9080/version", []string{}, bytes.NewBuffer([]byte{}), 200, "hello from localhost post-called foobar") } -- cgit v1.2.3