Fixed forgotten deprecation warning

This commit is contained in:
Thomas Kolb 2016-12-17 00:25:08 +01:00
parent 36b04a059e
commit 577dfd9e1a

View file

@ -61,11 +61,10 @@ unsigned char favicon_png[] = {
unsigned int favicon_png_len = 521; unsigned int favicon_png_len = 521;
struct MHD_Response* create_favicon_response(void) { struct MHD_Response* create_favicon_response(void) {
struct MHD_Response *faviconResponse = MHD_create_response_from_data( struct MHD_Response *faviconResponse = MHD_create_response_from_buffer(
favicon_png_len, favicon_png_len,
(void*)favicon_png, (void*)favicon_png,
MHD_NO, MHD_RESPMEM_PERSISTENT);
MHD_NO);
MHD_add_response_header(faviconResponse, MHD_HTTP_HEADER_CONTENT_TYPE, "image/png"); MHD_add_response_header(faviconResponse, MHD_HTTP_HEADER_CONTENT_TYPE, "image/png");