Skip to content

Commit da74266

Browse files
Dean KarnDean Karn
authored andcommitted
Update routers.go
Correct handler
1 parent ee25ee0 commit da74266

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ func larsNativeHandlerTest(w http.ResponseWriter, r *http.Request) {
825825
}
826826

827827
func loadLARS(routes []route) http.Handler {
828-
var h interface{} = echoHandler
828+
var h interface{} = larsHandler
829829
if loadTestHandler {
830830
h = larsHandlerTest
831831
}
@@ -848,7 +848,7 @@ func loadLARS(routes []route) http.Handler {
848848
panic("Unknow HTTP method: " + r.method)
849849
}
850850
}
851-
return l
851+
return l.Serve()
852852
}
853853

854854
func loadLARSSingle(method, path string, h interface{}) http.Handler {
@@ -868,7 +868,7 @@ func loadLARSSingle(method, path string, h interface{}) http.Handler {
868868
default:
869869
panic("Unknow HTTP method: " + method)
870870
}
871-
return l
871+
return l.Serve()
872872
}
873873

874874
// Macaron

0 commit comments

Comments
 (0)