mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 08:47:52 +08:00
chore(gateway): remove redundant seek
This commit is contained in:
parent
a12d2e265e
commit
69f6e08d9d
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user