summaryrefslogtreecommitdiff
path: root/gweb/gweb.c
diff options
context:
space:
mode:
Diffstat (limited to 'gweb/gweb.c')
-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;