fix(api): fix an issue introduced by the latest version of package gorilla/mux (#520)

pull/526/head
Anthony Lapenna 2017-01-21 11:17:51 +13:00 committed by GitHub
parent e4d98082dc
commit 3a6e9d2fbe
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func NewUploadHandler(middleWareService *middleWareService) *UploadHandler {
Logger: log.New(os.Stderr, "", log.LstdFlags),
middleWareService: middleWareService,
}
h.Handle("/upload/tls/{endpointID}/{certificate:(ca|cert|key)}", middleWareService.addMiddleWares(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
h.Handle("/upload/tls/{endpointID}/{certificate:(?:ca|cert|key)}", middleWareService.addMiddleWares(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
h.handlePostUploadTLS(w, r)
})))
return h