Workaround for assetFS FileInfo

See https://github.com/elazarl/go-bindata-assetfs/pull/55
This commit is contained in:
Unrud 2022-02-01 13:59:32 +01:00
parent c0e6ef52ec
commit abc8ef5818
3 changed files with 17 additions and 9 deletions

View file

@ -205,7 +205,7 @@ func main() {
}
port := addr.Port
mux := http.NewServeMux()
mux.Handle("/", http.FileServer(assetFS()))
mux.Handle("/", http.FileServer(fixedAssetFS()))
mux.Handle("/ws", websocket.Handler(func(ws *websocket.Conn) {
var message string
challenge := <-authenticationChallenges