Properly use Vary header

This commit is contained in:
2025-08-17 20:45:00 +02:00
parent a0d774c9a4
commit 73a469a7de

View File

@@ -208,9 +208,9 @@ static int local_handler(client_ctx_t *ctx) {
enc = COMPRESS_GZ;
}
}
if (enc != 0) {
http_add_header_field(&res->hdr, "Vary", "Accept-Encoding");
}
}
if (uri->meta->filename_comp_br[0] != 0 || uri->meta->filename_comp_gz[0] != 0) {
http_add_header_field(&res->hdr, "Vary", "Accept-Encoding");
}
buf1[0] = 0;