mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Merge d5e5043072 into f44046a1c6
This commit is contained in:
commit
60387fae58
1 changed files with 3 additions and 1 deletions
|
|
@ -198,7 +198,9 @@ func (s *Server) HandleBzzGet(w http.ResponseWriter, r *http.Request) {
|
|||
RespondError(w, r, fmt.Sprintf("Had an error building the tarball: %v", err), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
if reader != nil {
|
||||
defer reader.Close()
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "application/x-tar")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
|
|
|
|||
Loading…
Reference in a new issue