Skip to content

Commit 868f711

Browse files
committed
Parse POST's with format of formdata as well as urlencoded.
1 parent 496458f commit 868f711

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/webserver.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,12 @@ int webserver::bodyfull_requests_answer_first_step(
669669
encoding,
670670
strlen (MHD_HTTP_POST_ENCODING_FORM_URLENCODED)
671671
)
672-
))
672+
)
673+
|| (0 == strncasecmp (
674+
MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA,
675+
encoding,
676+
strlen (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA)
677+
)))
673678
)
674679
)
675680
{

0 commit comments

Comments
 (0)