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
The logging of HTTP requests in api.go may empty the data when the body is not a *bytes.Buffer.
Most of the requests in the API are created using a *bytes.Buffer, but some aren't. When the body is some other kind of io.Reader, copying the contents will empty the buffer, and the request will fail.
To fix it, we will check whether the body type is *bytes.Buffer and make the copy only in that case.
The text was updated successfully, but these errors were encountered:
The logging of HTTP requests in api.go may empty the data when the body is not a
*bytes.Buffer
.Most of the requests in the API are created using a
*bytes.Buffer
, but some aren't. When the body is some other kind ofio.Reader
, copying the contents will empty the buffer, and the request will fail.To fix it, we will check whether the body type is
*bytes.Buffer
and make the copy only in that case.The text was updated successfully, but these errors were encountered: