X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=client.c;h=85d4625ed694802147008a1e3c74e5ce095298eb;hb=5162e3b0ee7bd1d0fd6e75e1ca7993a1834b5291;hp=0d7029bbccfbe0233455fa97123679d38a09ca69;hpb=b9178b9357798ae23a5724333cc6572d14f23958;p=project%2Fuhttpd.git diff --git a/client.c b/client.c index 0d7029b..85d4625 100644 --- a/client.c +++ b/client.c @@ -50,7 +50,7 @@ void uh_http_header(struct client *cl, int code, const char *summary) cl->http_code = code; - if (!uh_use_chunked(cl)) + if (!cl->request.respond_chunked) enc = ""; if (r->connection_close) @@ -188,6 +188,8 @@ static int client_parse_request(struct client *cl, char *data) !conf.http_keepalive) req->connection_close = true; + req->respond_chunked = uh_use_chunked(cl); + return CLIENT_STATE_HEADER; }