diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-21 03:46:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-21 03:46:03 +0000 |
commit | 927d47528fbd27c1374c8e88d3efc0f1ed706bd6 (patch) | |
tree | 82b5b46f58d3bf0a3482c9ceadedd93fecaa0752 /contrib/package/uhttpd/src/uhttpd-cgi.c | |
parent | 23052d8f013188302dd9faee47f6911e4ed0e1e1 (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.c | 3 |
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)); |