Skip to content

Commit 208f188

Browse files
committed
Fixed method DELETE to parse the body optionally
1 parent ead9ccc commit 208f188

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/webserver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ int webserver::answer_to_connection(void* cls, MHD_Connection* connection,
787787
else if (0 == strcasecmp(method,http_utils::http_method_delete.c_str()))
788788
{
789789
mr->callback = &http_resource::render_DELETE;
790+
body = true;
790791
}
791792
else if (0 == strcasecmp(method, http_utils::http_method_head.c_str()))
792793
{

0 commit comments

Comments
 (0)