Add VAR HTTP-HEADER if necessary

This commit is contained in:
Emmanuel Engelhart 2015-11-10 22:24:56 +01:00
parent cdb53beb3b
commit 09cd024199

View File

@ -416,6 +416,7 @@ static int accessHandlerCallback(void *cls,
/* Add if necessary the content-encoding */
if (deflated) {
MHD_add_response_header(response, MHD_HTTP_HEADER_VARY, "Accept-Encoding");
MHD_add_response_header(response, MHD_HTTP_HEADER_CONTENT_ENCODING, "deflate");
}