diff --git a/net/http/client.ha b/net/http/client.ha index 4eac8ab..853c639 100644 --- a/net/http/client.ha +++ b/net/http/client.ha @@ -100,6 +100,7 @@ fn request_set_content_length(req: *request, body: io::handle) void = { case let off: io::off => yield off; case io::error => + header_add(&req.header, "Transfer-Encoding", "chunked"); return; }; const ln = io::seek(body, 0, io::whence::END)!;