Skip to content

Commit bd04c04

Browse files
author
grothoff
committed
return success even without optional \r\n
git-svn-id: https://gnunet.org/svn/libmicrohttpd@25764 140774ce-b5e7-0310-ab8b-a85725594a96
1 parent debfa60 commit bd04c04

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Fri Jan 11 23:21:55 CET 2013
2+
Also return MHD_YES from MHD_destroy_post_processor if
3+
we did not get '\r\n' in the upload. -CG
4+
15
Sun Jan 6 21:10:13 CET 2013
26
Enable use of "MHD_create_response_from_callback" with
37
body size of zeor. -CG

src/daemon/postprocessor.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,9 @@ MHD_destroy_post_processor (struct MHD_PostProcessor *pp)
10651065
/* These internal strings need cleaning up since
10661066
the post-processing may have been interrupted
10671067
at any stage */
1068-
if ((pp->xbuf_pos > 0) || (pp->state != PP_Done))
1068+
if ((pp->xbuf_pos > 0) ||
1069+
( (pp->state != PP_Done) &&
1070+
(pp->state != PP_ExpectNewLine)))
10691071
ret = MHD_NO;
10701072
else
10711073
ret = MHD_YES;

src/include/microhttpd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ extern "C"
106106
/**
107107
* Current version of the library.
108108
*/
109-
#define MHD_VERSION 0x00091801
109+
#define MHD_VERSION 0x00091802
110110

111111
/**
112112
* MHD-internal return code for "YES".

0 commit comments

Comments
 (0)