diff --git a/VERSION b/VERSION index 485cda6..7fe8a15 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.352 +0.1.353 diff --git a/mothership/cmd/mothership/main.go b/mothership/cmd/mothership/main.go index a333f3c..5fa87ef 100644 --- a/mothership/cmd/mothership/main.go +++ b/mothership/cmd/mothership/main.go @@ -311,10 +311,12 @@ func serveEmbeddedFile(w http.ResponseWriter, r *http.Request, filename string) http.NotFound(w, r) return } - http.ServeContent(w, r, filename, stat.ModTime(), file.(interface { - Len() int64 - io.ReadSeeker - })) + rs, ok := file.(io.ReadSeeker) + if !ok { + http.NotFound(w, r) + return + } + http.ServeContent(w, r, filename, stat.ModTime(), rs) return }