|
|
|
|
@ -22,7 +22,6 @@ type routeTest struct {
@@ -22,7 +22,6 @@ type routeTest struct {
|
|
|
|
|
shouldMatch bool // whether the request is expected to match the route at all
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func TestHost(t *testing.T) { |
|
|
|
|
// newRequestHost a new request with a method, url, and host header
|
|
|
|
|
newRequestHost := func(method, url, host string) *http.Request { |
|
|
|
|
@ -698,7 +697,6 @@ func TestKeepContext(t *testing.T) {
@@ -698,7 +697,6 @@ func TestKeepContext(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TestA301ResponseWriter struct { |
|
|
|
|
hh http.Header |
|
|
|
|
status int |
|
|
|
|
|