X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fwebcit.c;fp=webcit%2Fwebcit.c;h=8a0ba58a98cb1d31dac5b5d3b397f312beccfda1;hp=dd0043d29dd0794af9f2cb43d80e5fe760413dcb;hb=5249c9ab6b14efd4d0f92cb64afd78bff3f7e163;hpb=dbff3f19efefa1488dbd811d702069add21f264d diff --git a/webcit/webcit.c b/webcit/webcit.c index dd0043d29..8a0ba58a9 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -249,12 +249,15 @@ void http_transmit_thing(const char *content_type, int is_static) end_burst(); } -void http_transmit_headers(const char *content_type, int is_static, long is_chunked) +void http_transmit_headers(const char *content_type, int is_static, long is_chunked, int is_gzip) { wcsession *WCC = WC; syslog(LOG_DEBUG, "http_transmit_thing(%s)%s", content_type, ((is_static > 0) ? " (static)" : "")); output_headers(0, 0, 0, 0, 0, is_static); + if (is_gzip) + hprintf("Content-encoding: gzip\r\n"); + if (WCC->Hdr->HaveRange) hprintf("Accept-Ranges: bytes\r\n" "Content-Range: bytes %ld-%ld/%ld\r\n",