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) {
}, },
{ {
title: "Headers route, regex header values to match", title: "Headers route, regex header values to match",
route: new(Route).Headers("foo", "ba[zr]"), route: new(Route).HeadersRegexp("foo", "ba[zr]"),
request: newRequestHeaders("GET", "http://localhost", map[string]string{"foo": "bar"}), request: newRequestHeaders("GET", "http://localhost", map[string]string{"foo": "baw"}),
vars: map[string]string{}, vars: map[string]string{},
host: "", host: "",
path: "", path: "",

Loading…
Cancel
Save