diff options
-rw-r--r-- | client.c | 2 | ||||
-rw-r--r-- | uhttpd.h | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -48,6 +48,8 @@ void uh_http_header(struct client *cl, int code, const char *summary) const char *enc = "Transfer-Encoding: chunked\r\n"; const char *conn; + cl->http_code = code; + if (!uh_use_chunked(cl)) enc = ""; @@ -243,6 +243,7 @@ struct client { enum client_state state; bool tls; + int http_code; struct http_request request; struct uh_addr srv_addr, peer_addr; |