chore(gateway): remove redundant seek
Steven Allen committed
Nov 6, 2019 at 11:45 UTC
69f6e08d9de44a78fa53154aa01870e66f77002f
1 file changed
-1
core/corehttp/gateway_handler.go
-1
@@ -400,7 +400,6 @@ func (i *gatewayHandler) serveFile(w http.ResponseWriter, req *http.Request, nam
400
}
401
w.Header().Set("Content-Type", ctype)
402
403
- _, _ = content.Seek(0, io.SeekStart)
403
http.ServeContent(w, req, name, modtime, content)
404
}
405