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() {
|
go func() {
|
||||||
err := writer.WriteMultipart(body)
|
err := writer.WriteMultipart(body)
|
||||||
if err != nil {
|
body.Close()
|
||||||
err = body.Close()
|
|
||||||
}
|
|
||||||
|
|
||||||
w.CloseWithError(err)
|
w.CloseWithError(err)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue