Skip to content

the value of request.ContentLength remains 0 on HTTP POST with body #253

@javidnia

Description

@javidnia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions