1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 09:12:53 +00:00

httputil: Fixed Multipart writer not closing

This commit is contained in:
diamondburned 2020-12-16 14:08:31 -08:00
parent 1483dd71d8
commit 808dfb28bb

View file

@ -113,10 +113,7 @@ func (c *Client) MeanwhileMultipart(
go func() {
err := writer.WriteMultipart(body)
if err != nil {
err = body.Close()
}
body.Close()
w.CloseWithError(err)
}()