uhttpd: add "Connection: close" headers, mandatory according to HTTP/1.1 spec
[project/luci.git] / contrib / package / uhttpd / src / uhttpd-utils.c
index 914c6061166b31445d177da28d812a8e2fb9cc83..549ad88d0772432a88ed2697ef1b84fefe89eaaf 100644 (file)
@@ -171,6 +171,7 @@ int uh_http_sendhf(struct client *cl, int code, const char *summary, const char
 
        len = snprintf(buffer, sizeof(buffer),
                "HTTP/1.1 %03i %s\r\n"
+               "Connection: close\r\n"
                "Content-Type: text/plain\r\n"
                "Transfer-Encoding: chunked\r\n\r\n",
                        code, summary