2
0
Fork 0

fix compile bugs in previous commits

personal/stbuehler/wip
Stefan Bühler 2012-01-10 01:27:10 +01:00
parent 6ca28bab2b
commit 4c04989bd1
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#include <lighttpd/base.h>
#include <lighttpd/http_request_parser.h>
#include <lighttpd/lighttpd-glue.h>
/** Machine **/

View File

@ -74,11 +74,11 @@ gboolean li_response_send_headers(liConnection *con) {
if (vr->request.http_version == LI_HTTP_VERSION_1_1) {
g_string_append_len(head, CONST_STR_LEN("HTTP/1.1 "));
if (!con->info.keep_alive)
g_string_append_len(head, "Connection: close"); /* connection header entries are ignored, send it directly */
g_string_append_len(head, CONST_STR_LEN("Connection: close")); /* connection header entries are ignored, send it directly */
} else {
g_string_append_len(head, CONST_STR_LEN("HTTP/1.0 "));
if (con->info.keep_alive)
g_string_append_len(head, "Connection: keep-alive"); /* connection header entries are ignored, send it directly */
g_string_append_len(head, CONST_STR_LEN("Connection: keep-alive")); /* connection header entries are ignored, send it directly */
}
{