projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29d07a9
)
Don't report zero length success status back to client
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 8 Nov 2010 01:05:35 +0000
(10:05 +0900)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 8 Nov 2010 01:05:35 +0000
(10:05 +0900)
gweb/gweb.c
patch
|
blob
|
history
diff --git
a/gweb/gweb.c
b/gweb/gweb.c
index
72c5cfd
..
a348cdd
100644
(file)
--- a/
gweb/gweb.c
+++ b/
gweb/gweb.c
@@
-628,9
+628,11
@@
static int handle_body(struct web_session *session,
debug(session->web, "[body] length %zu", len);
if (session->result.use_chunk == FALSE) {
- session->result.buffer = buf;
- session->result.length = len;
- call_result_func(session, 0);
+ if (len > 0) {
+ session->result.buffer = buf;
+ session->result.length = len;
+ call_result_func(session, 0);
+ }
return 0;
}