diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-30 15:48:42 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-30 15:51:02 +0200 |
commit | 5162e3b0ee7bd1d0fd6e75e1ca7993a1834b5291 (patch) | |
tree | 4ba7bb8d6e09af284cb72a0a7d8a0df4cee8da34 /client.c | |
parent | b9178b9357798ae23a5724333cc6572d14f23958 (diff) |
allow request handlers to disable chunked reponses
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |