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");