projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c42c3a3
)
gweb: process_send_file after HTTP Header is sent
author
Sébastien Bianti
<sebastien.bianti@linux.intel.com>
Tue, 10 Jan 2012 09:49:16 +0000
(10:49 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 11 Jan 2012 05:12:19 +0000
(21:12 -0800)
gweb/gweb.c
patch
|
blob
|
history
diff --git
a/gweb/gweb.c
b/gweb/gweb.c
index
9cf4b02
..
365f67c
100644
(file)
--- 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;