From 548a26a51aca27ce378fcaef8c986807668bf836 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Bianti?= Date: Tue, 10 Jan 2012 10:49:16 +0100 Subject: [PATCH] gweb: process_send_file after HTTP Header is sent --- gweb/gweb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gweb/gweb.c b/gweb/gweb.c index 9cf4b02..365f67c 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -485,6 +485,9 @@ static gboolean process_send_file(struct web_session *session) if (session->fd == -1) return FALSE; + if (session->request_started == FALSE || session->more_data == TRUE) + return FALSE; + sk = g_io_channel_unix_get_fd(session->transport_channel); if (sk < 0) return FALSE; -- 2.7.4