Skip to content

Commit c19f27a

Browse files
committed
Change response to POST requests
1 parent aecab2b commit c19f27a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/webu_post.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -954,10 +954,14 @@ mhdrslt cls_webu_post::processor_start(const char *upload_data, size_t *upload_d
954954
pthread_mutex_lock(&app->mutex_post);
955955
process_actions();
956956
pthread_mutex_unlock(&app->mutex_post);
957-
/* Send updated page back to user */
958-
webu_html = new cls_webu_html(webua);
959-
webu_html->main();
960-
delete webu_html;
957+
webua->resp_page =
958+
"<!DOCTYPE html>\n"
959+
"<html>\n"
960+
"<body>\n"
961+
"<p>OK</p>\n"
962+
"</body>\n"
963+
"</html>\n";
964+
webua->mhd_send();
961965
retcd = MHD_YES;
962966
}
963967
return retcd;

0 commit comments

Comments
 (0)