From f4bb43781ccebce0ec69385c591680162c19cf01 Mon Sep 17 00:00:00 2001 From: Nathan Probst Date: Wed, 24 Feb 2016 10:28:06 -0700 Subject: [PATCH] Remove unneeded Regexp from tests. --- caddy/setup/rewrite_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/caddy/setup/rewrite_test.go b/caddy/setup/rewrite_test.go index 1ce96aeec..d252ed904 100644 --- a/caddy/setup/rewrite_test.go +++ b/caddy/setup/rewrite_test.go @@ -145,13 +145,13 @@ func TestRewriteParse(t *testing.T) { {`rewrite { status 400 }`, false, []rewrite.Rule{ - &rewrite.ComplexRule{Base: "/", Regexp: regexp.MustCompile(".*"), Status: 400}, + &rewrite.ComplexRule{Base: "/", Status: 400}, }}, {`rewrite { to /to status 400 }`, false, []rewrite.Rule{ - &rewrite.ComplexRule{Base: "/", To: "/to", Regexp: regexp.MustCompile(".*"), Status: 400}, + &rewrite.ComplexRule{Base: "/", To: "/to", Status: 400}, }}, {`rewrite { status 399 @@ -161,13 +161,13 @@ func TestRewriteParse(t *testing.T) { {`rewrite { status 200 }`, false, []rewrite.Rule{ - &rewrite.ComplexRule{Base: "/", Regexp: regexp.MustCompile(".*"), Status: 200}, + &rewrite.ComplexRule{Base: "/", Status: 200}, }}, {`rewrite { to /to status 200 }`, false, []rewrite.Rule{ - &rewrite.ComplexRule{Base: "/", To: "/to", Regexp: regexp.MustCompile(".*"), Status: 200}, + &rewrite.ComplexRule{Base: "/", To: "/to", Status: 200}, }}, {`rewrite { status 199