summaryrefslogtreecommitdiff
path: root/gweb/gweb.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-11-07 20:45:53 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-11-07 20:45:53 +0100
commiteeae930c4261cd0de57b09e5ca1de7998f4e9630 (patch)
treef652256aec4fd6982bec7d155db2a6f7f07feb1e /gweb/gweb.c
parent5cd4fd7180ec0bb936a6424560cfaab5fab828ef (diff)
downloadconnman-eeae930c4261cd0de57b09e5ca1de7998f4e9630.tar.gz
connman-eeae930c4261cd0de57b09e5ca1de7998f4e9630.tar.bz2
connman-eeae930c4261cd0de57b09e5ca1de7998f4e9630.zip
Add some extra HTTP body context debug
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;
}