Skip to content

Commit

Permalink
fix: crash with http write to
Browse files Browse the repository at this point in the history
Signed-off-by: HystericalDragon <HystericalDragons@proton.me>
  • Loading branch information
xchacha20-poly1305 committed Jul 29, 2024
1 parent 573c173 commit eae969f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcore/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ func (h *httpResponse) WriteTo(path string, callback CopyCallback) error {
return err
}
defer file.Close()
writer = file
}
if callback != nil {
callback.SetLength(h.Response.ContentLength)
Expand Down

0 comments on commit eae969f

Please sign in to comment.