Skip to content

Commit

Permalink
fix headers regexp test (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
icattlecoder authored and elithrar committed Nov 19, 2019
1 parent 2854a05 commit 4de8a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mux_test.go
Expand Up @@ -684,8 +684,8 @@ func TestHeaders(t *testing.T) {
},
{
title: "Headers route, regex header values to match",
route: new(Route).Headers("foo", "ba[zr]"),
request: newRequestHeaders("GET", "http://localhost", map[string]string{"foo": "bar"}),
route: new(Route).HeadersRegexp("foo", "ba[zr]"),
request: newRequestHeaders("GET", "http://localhost", map[string]string{"foo": "baw"}),
vars: map[string]string{},
host: "",
path: "",
Expand Down

0 comments on commit 4de8a5a

Please sign in to comment.