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:
5cd4fd7
)
Add some extra HTTP body context debug
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 7 Nov 2010 19:45:53 +0000
(20:45 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 7 Nov 2010 19:45:53 +0000
(20:45 +0100)
gweb/gweb.c
patch
|
blob
|
history
diff --git
a/gweb/gweb.c
b/gweb/gweb.c
index
8c85b0a
..
04bc9bd
100644
(file)
--- 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;
}