Respond to non Get/post requests

This commit is contained in:
Andrew Pamment 2016-08-21 09:45:38 +10:00
parent 9d8d2543ea
commit 63075ceca4

4
www.c
View File

@ -870,6 +870,10 @@ int www_handler(void * cls, struct MHD_Connection * connection, const char * url
free(footer); free(footer);
return MHD_NO; return MHD_NO;
} }
} else {
free(header);
free(footer);
return MHD_NO;
} }
response = MHD_create_response_from_buffer (strlen (whole_page), (void*) whole_page, MHD_RESPMEM_MUST_FREE); response = MHD_create_response_from_buffer (strlen (whole_page), (void*) whole_page, MHD_RESPMEM_MUST_FREE);