Respond to non Get/post requests
This commit is contained in:
parent
9d8d2543ea
commit
63075ceca4
4
www.c
4
www.c
@ -870,6 +870,10 @@ int www_handler(void * cls, struct MHD_Connection * connection, const char * url
|
||||
free(footer);
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user