fix compile bugs in previous commits

personal/stbuehler/wip
Stefan Bühler 11 years ago
parent 6ca28bab2b
commit 4c04989bd1
  1. 1
      src/main/http_request_parser.rl
  2. 4
      src/main/response.c

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

@ -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 */
}
{

Loading…
Cancel
Save