Index: ChangeLog =================================================================== --- ChangeLog (revision 25750) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +Fri Jan 11 23:21:55 CET 2013 + Also return MHD_YES from MHD_destroy_post_processor if + we did not get '\r\n' in the upload. -CG + Sun Jan 6 21:10:13 CET 2013 Enable use of "MHD_create_response_from_callback" with body size of zeor. -CG Index: src/include/microhttpd.h =================================================================== --- src/include/microhttpd.h (revision 25750) +++ src/include/microhttpd.h (working copy) @@ -106,7 +106,7 @@ /** * Current version of the library. */ -#define MHD_VERSION 0x00091801 +#define MHD_VERSION 0x00091802 /** * MHD-internal return code for "YES". Index: src/daemon/postprocessor.c =================================================================== --- src/daemon/postprocessor.c (revision 25750) +++ src/daemon/postprocessor.c (working copy) @@ -1065,7 +1065,9 @@ /* These internal strings need cleaning up since the post-processing may have been interrupted at any stage */ - if ((pp->xbuf_pos > 0) || (pp->state != PP_Done)) + if ((pp->xbuf_pos > 0) || + ( (pp->state != PP_Done) && + (pp->state != PP_ExpectNewLine))) ret = MHD_NO; else ret = MHD_YES;