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:
parent
1483dd71d8
commit
808dfb28bb
|
@ -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)
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in a new issue