summaryrefslogtreecommitdiff
path: root/gweb/gweb.c
diff options
context:
space:
mode:
Diffstat (limited to 'gweb/gweb.c')
-rw-r--r--gweb/gweb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c
index 8c85b0ab..04bc9bd0 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -587,6 +587,8 @@ static int handle_body(struct web_session *session,
{
int err;
+ debug(session->web, "[body] length %zu", len);
+
if (session->result.use_chunk == FALSE) {
session->result.buffer = buf;
session->result.length = len;
@@ -639,8 +641,8 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond,
session->receive_buffer[bytes_read] = '\0';
if (session->header_done == TRUE) {
- if (handle_body(session,
- session->receive_buffer, bytes_read) < 0) {
+ if (handle_body(session, session->receive_buffer,
+ bytes_read) < 0) {
session->transport_watch = 0;
return FALSE;
}