From 577dfd9e1a6e3042a8c611a505e21c8be190da8d Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sat, 17 Dec 2016 00:25:08 +0100 Subject: [PATCH] Fixed forgotten deprecation warning --- src/favicon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/favicon.c b/src/favicon.c index 90cd22b..3652347 100644 --- a/src/favicon.c +++ b/src/favicon.c @@ -61,11 +61,10 @@ unsigned char favicon_png[] = { unsigned int favicon_png_len = 521; 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, (void*)favicon_png, - MHD_NO, - MHD_NO); + MHD_RESPMEM_PERSISTENT); MHD_add_response_header(faviconResponse, MHD_HTTP_HEADER_CONTENT_TYPE, "image/png");