const char *enc = "Transfer-Encoding: chunked\r\n";
const char *conn;
- if (!uh_use_chunked(cl))
+ cl->http_code = code;
+
+ if (!cl->request.respond_chunked)
enc = "";
if (r->connection_close)
!conf.http_keepalive)
req->connection_close = true;
+ req->respond_chunked = uh_use_chunked(cl);
+
return CLIENT_STATE_HEADER;
}