Skip to content

If not given a content-length, .stream should assume transfer-encoding:chunked #218

Closed
@weissi

Description

@weissi

[THIS SHOULD BE FIXED AFTER #217]

        let request = try! HTTPClient.Request(url: "http://localhost:\(httpBin.port)/get",
                                              method: .POST,
                                              body: .stream { streamWriter in

this Request will actually error (sort of, see #217) but it should just assume transfer-encoding: chunked, the user clearly hasn't given a content length.

If the user manually set a content-length in headers:, then we should obvs use that.

Metadata

Metadata

Assignees

Labels

kind/enhancementImprovements to existing feature.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions