stick to go1.13 for now, update credits (#163)

fix release tags for mcs
This commit is contained in:
Harshavardhana
2020-06-04 13:15:56 -07:00
committed by GitHub
parent 8949fbe245
commit 48e6b1bb7c
11 changed files with 97 additions and 55 deletions

View File

@@ -25,6 +25,7 @@ import (
"strings"
"github.com/minio/mcs/models"
"github.com/minio/mcs/pkg"
"github.com/minio/mcs/pkg/auth"
assetFS "github.com/elazarl/go-bindata-assetfs"
@@ -161,6 +162,7 @@ func setupGlobalMiddleware(handler http.Handler) http.Handler {
// FileServerMiddleware serves files from the static folder
func FileServerMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", "mcs/"+pkg.Version) // add HTTP Server header
switch {
case strings.HasPrefix(r.URL.Path, "/ws"):
serveWS(w, r)