You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if request.Body != nil {
reqData, err := ioutil.ReadAll(request.Body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(reqData)
request.Body = ioutil.NopCloser(bodyReader) // prevents closing the body between retries
}
The above piece of code form client.go is using ioutil.ReadAll to read all data from reqeust body. Doesn't that process have performance issue while uploading large files?
The text was updated successfully, but these errors were encountered:
if request.Body != nil {
reqData, err := ioutil.ReadAll(request.Body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(reqData)
request.Body = ioutil.NopCloser(bodyReader) // prevents closing the body between retries
}
The above piece of code form
client.go
is usingioutil.ReadAll
to read all data from reqeust body. Doesn't that process have performance issue while uploading large files?The text was updated successfully, but these errors were encountered: