diff options
author | Sébastien Bianti <sebastien.bianti@linux.intel.com> | 2012-01-10 10:49:16 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-01-10 21:12:19 -0800 |
commit | 548a26a51aca27ce378fcaef8c986807668bf836 (patch) | |
tree | 565ffebbd43aa9150ec90e7d1d3955ab00eab75d /gweb | |
parent | c42c3a3c88adf59ca19c3e0ace858f6aa7bafa2c (diff) | |
download | connman-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.c | 3 |
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; |