Skip to content

Commit 2b4a289

Browse files
committed
Merge pull request etr#94 from wlandry/formdata
Parse POST's with format of formdata as well as urlencoded.
2 parents 496458f + 868f711 commit 2b4a289

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)