Closed GoogleCodeExporter closed 9 years ago
I had a similar (maybe the same) issue... there was nothing in the http data
buffer when I did a PUT. The below patch resolved what I needed:
--- mongoose/mongoose.c 2010-09-26 17:07:14.000000000 -0700
+++ mongoose-new/mongoose.c 2011-02-02 17:08:27.000000000 -0800
@@ -1320,7 +1320,8 @@
DEBUG_TRACE(("%p %zu %lld %lld", buf, len,
conn->content_len, conn->consumed_content));
nread = 0;
- if (strcmp(conn->request_info.request_method, "POST") == 0 &&
+ if (( (strcmp(conn->request_info.request_method, "POST") == 0) ||
+ (strcmp(conn->request_info.request_method, "PUT") == 0) ) &&
conn->consumed_content < conn->content_len) {
// Adjust number of bytes to read.
Original comment by kwo...@gmail.com
on 3 Feb 2011 at 11:37
This must be fixed in the head.
Please verify.
Original comment by valenok
on 23 Sep 2012 at 1:11
Original issue reported on code.google.com by
vijay.n...@gmail.com
on 13 Dec 2010 at 1:03