Skip to content

Commit 4de8a5a

Browse files
icattlecoderelithrar
authored andcommitted
fix headers regexp test (#536)
1 parent 2854a05 commit 4de8a5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mux_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,8 @@ func TestHeaders(t *testing.T) {
684684
},
685685
{
686686
title: "Headers route, regex header values to match",
687-
route: new(Route).Headers("foo", "ba[zr]"),
688-
request: newRequestHeaders("GET", "http://localhost", map[string]string{"foo": "bar"}),
687+
route: new(Route).HeadersRegexp("foo", "ba[zr]"),
688+
request: newRequestHeaders("GET", "http://localhost", map[string]string{"foo": "baw"}),
689689
vars: map[string]string{},
690690
host: "",
691691
path: "",

0 commit comments

Comments
 (0)