From 69f6e08d9de44a78fa53154aa01870e66f77002f Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 6 Nov 2019 11:45:41 +0000 Subject: [PATCH] chore(gateway): remove redundant seek --- core/corehttp/gateway_handler.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/corehttp/gateway_handler.go b/core/corehttp/gateway_handler.go index 96db4400b..07d0c59e1 100644 --- a/core/corehttp/gateway_handler.go +++ b/core/corehttp/gateway_handler.go @@ -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) }