chore(gateway): remove redundant seek

This commit is contained in:
Steven Allen 2019-11-06 11:45:41 +00:00
parent a12d2e265e
commit 69f6e08d9d

View File

@ -400,7 +400,6 @@ func (i *gatewayHandler) serveFile(w http.ResponseWriter, req *http.Request, nam
}
w.Header().Set("Content-Type", ctype)
_, _ = content.Seek(0, io.SeekStart)
http.ServeContent(w, req, name, modtime, content)
}