Fix panic for multipart client
This commit is contained in:
@@ -50,6 +50,7 @@ func NewClient(res *http.Response) (*Client, error) {
|
|||||||
c := &Client{
|
c := &Client{
|
||||||
boundary: boundary,
|
boundary: boundary,
|
||||||
reader: bufio.NewReader(res.Body),
|
reader: bufio.NewReader(res.Body),
|
||||||
|
res: res,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := c.probe(); err != nil {
|
if err := c.probe(); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user