Browse Source

fix headers regexp test (#536)

pull/537/head
wangming 6 years ago committed by Matt Silverlock
parent
commit
4de8a5a4d2
  1. 4
      mux_test.go

4
mux_test.go

@ -684,8 +684,8 @@ func TestHeaders(t *testing.T) { @@ -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: "",

Loading…
Cancel
Save