summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorSébastien Bianti <sebastien.bianti@linux.intel.com>2012-01-10 10:49:16 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-01-10 21:12:19 -0800
commit548a26a51aca27ce378fcaef8c986807668bf836 (patch)
tree565ffebbd43aa9150ec90e7d1d3955ab00eab75d /gweb
parentc42c3a3c88adf59ca19c3e0ace858f6aa7bafa2c (diff)
downloadconnman-548a26a51aca27ce378fcaef8c986807668bf836.tar.gz
connman-548a26a51aca27ce378fcaef8c986807668bf836.tar.bz2
connman-548a26a51aca27ce378fcaef8c986807668bf836.zip
gweb: process_send_file after HTTP Header is sent
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gweb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c
index 9cf4b02f..365f67c7 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;