Skip to content

Commit 3a18134

Browse files
author
Sebastiano Merlino
committed
Solved a bug that made impossible to parse post data
1 parent ca26232 commit 3a18134

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/webserver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -850,13 +850,13 @@ int webserver::bodyfull_requests_answer_second_step(MHD_Connection* connection,
850850
cout << "Writing content: " << upload_data << endl;
851851
#endif //DEBUG
852852
mr->dhr->grow_content(upload_data, *upload_data_size);
853+
if (mr->pp != NULL)
854+
{
855+
MHD_post_process(mr->pp, upload_data, *upload_data_size);
856+
}
853857
*upload_data_size = 0;
854858
return MHD_YES;
855859
}
856-
if (mr->pp != NULL)
857-
{
858-
MHD_post_process(mr->pp, upload_data, *upload_data_size);
859-
}
860860

861861
return complete_request(connection, mr, version, st_url.c_str(), method);
862862
}

0 commit comments

Comments
 (0)