Bug fix for handling a route's HTTP method in router

This commit is contained in:
Soam Vasani
2017-01-17 18:42:54 -08:00
parent 93ca9cbf3e
commit 3f02ccaf34
+1 -1
View File
@@ -73,7 +73,7 @@ func (ts *HTTPTriggerSet) getRouter() *mux.Router {
Function: m,
poolmgr: ts.poolmgr,
}
muxRouter.HandleFunc(trigger.UrlPattern, fh.handler)
muxRouter.HandleFunc(trigger.UrlPattern, fh.handler).Methods(trigger.Method)
}
// Internal triggers for (the latest version of) each function