bump(github.com/gorilla/mux): 9ede152210fa25c1377d33e867cb828c19316445

This commit is contained in:
Ben Johnson
2014-01-02 16:41:33 -07:00
parent d32fd00bbb
commit ae10b6226d
2 changed files with 10 additions and 12 deletions

View File

@ -166,7 +166,7 @@ func (r *Router) Handle(path string, handler http.Handler) *Route {
// HandleFunc registers a new route with a matcher for the URL path. // HandleFunc registers a new route with a matcher for the URL path.
// See Route.Path() and Route.HandlerFunc(). // See Route.Path() and Route.HandlerFunc().
func (r *Router) HandleFunc(path string, f func(http.ResponseWriter, func (r *Router) HandleFunc(path string, f func(http.ResponseWriter,
*http.Request)) *Route { *http.Request),) *Route {
return r.NewRoute().Path(path).HandlerFunc(f) return r.NewRoute().Path(path).HandlerFunc(f)
} }

View File

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