From 95f59ab7b09b464530c18de7006bf6f189125084 Mon Sep 17 00:00:00 2001 From: gardners Date: Wed, 5 Sep 2012 16:02:39 +0930 Subject: [PATCH] Fixed handling of multi-part form POST requests (removed HTTP response stub that was causing instakill of such requests). --- rhizome_direct.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rhizome_direct.c b/rhizome_direct.c index 4080e059..9a4be609 100644 --- a/rhizome_direct.c +++ b/rhizome_direct.c @@ -113,6 +113,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. int rhizome_direct_process_post_multipart_bytes (rhizome_http_request *r,const char *bytes,int count) { + DEBUGF("Saw %d multi-part form bytes",count); return 0; } @@ -242,8 +243,8 @@ int rhizome_direct_parse_http_request(rhizome_http_request *r) r->request_length=0; } - return rhizome_server_simple_http_response(r, 200, "

Not implemented

\r\n"); - + /* Handle the rest of the transfer asynchronously. */ + return 0; } else { rhizome_server_simple_http_response(r, 404, "

Not found

\r\n"); }