Changeset 5897
- Timestamp:
- 03/21/10 04:46:03 (3 years ago)
- Location:
- luci/trunk/contrib/package/uhttpd/src
- Files:
-
- 3 modified
-
uhttpd-cgi.c (modified) (1 diff)
-
uhttpd-file.c (modified) (2 diffs)
-
uhttpd-utils.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/contrib/package/uhttpd/src/uhttpd-cgi.c
r5895 r5897 431 431 /* write status */ 432 432 ensure(uh_http_sendf(cl, NULL, 433 "HTTP/%.1f %03d %s\r\n", 433 "HTTP/%.1f %03d %s\r\n" 434 "Connection: close\r\n", 434 435 req->version, res->statuscode, 435 436 res->statusmsg)); -
luci/trunk/contrib/package/uhttpd/src/uhttpd-file.c
r5895 r5897 102 102 static void uh_file_response_ok_hdrs(struct client *cl, struct http_request *req, struct stat *s) 103 103 { 104 uh_http_sendf(cl, NULL, "Connection: close\r\n"); 105 104 106 if( s ) 105 107 { … … 125 127 static void uh_file_response_412(struct client *cl, struct http_request *req) 126 128 { 127 uh_http_sendf(cl, NULL, "HTTP/%.1f 412 Precondition Failed\r\n", 128 req->version); 129 uh_http_sendf(cl, NULL, 130 "HTTP/%.1f 412 Precondition Failed\r\n" 131 "Connection: close\r\n", req->version); 129 132 } 130 133 -
luci/trunk/contrib/package/uhttpd/src/uhttpd-utils.c
r5893 r5897 172 172 len = snprintf(buffer, sizeof(buffer), 173 173 "HTTP/1.1 %03i %s\r\n" 174 "Connection: close\r\n" 174 175 "Content-Type: text/plain\r\n" 175 176 "Transfer-Encoding: chunked\r\n\r\n",
