summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/uhttpd/src/uhttpd-cgi.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-21 03:46:03 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-21 03:46:03 +0000
commit927d47528fbd27c1374c8e88d3efc0f1ed706bd6 (patch)
tree82b5b46f58d3bf0a3482c9ceadedd93fecaa0752 /contrib/package/uhttpd/src/uhttpd-cgi.c
parent23052d8f013188302dd9faee47f6911e4ed0e1e1 (diff)
uhttpd: add "Connection: close" headers, mandatory according to HTTP/1.1 spec
Diffstat (limited to 'contrib/package/uhttpd/src/uhttpd-cgi.c')
-rw-r--r--contrib/package/uhttpd/src/uhttpd-cgi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/package/uhttpd/src/uhttpd-cgi.c b/contrib/package/uhttpd/src/uhttpd-cgi.c
index 4889819aa7..5df045e8c7 100644
--- a/contrib/package/uhttpd/src/uhttpd-cgi.c
+++ b/contrib/package/uhttpd/src/uhttpd-cgi.c
@@ -430,7 +430,8 @@ void uh_cgi_request(struct client *cl, struct http_request *req, struct path_inf
{
/* write status */
ensure(uh_http_sendf(cl, NULL,
- "HTTP/%.1f %03d %s\r\n",
+ "HTTP/%.1f %03d %s\r\n"
+ "Connection: close\r\n",
req->version, res->statuscode,
res->statusmsg));