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 text was updated successfully, but these errors were encountered:
javidnia
changed the title
the value of request.ContentLength remains 0
the value of request.ContentLength remains 0 on HTTP POST with body
Aug 23, 2022
That's a streaming body that is sent with transfer encoding chunked probably. It can't know the content length of a stream unless you explicitly set it
when sending an HTTP POST request, having bytes.NewReader(contentBytes) as body, the resulting net/http/request object has
ContnetLength=0
Library versions:
github.com/go-openapi/errors v0.20.2
github.com/go-openapi/runtime v0.24.1
github.com/go-openapi/strfmt v0.21.2
The text was updated successfully, but these errors were encountered: