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 New Issue