1a8dbabb03
-- mod_gzip transparently compresses the output of apache to client browsers. It uses the 'Accept-Encoding' header to determine whether or not the client browser wants gzipped content.
24 lines
831 B
Plaintext
24 lines
831 B
Plaintext
$OpenBSD: patch-mod_gzip_c,v 1.1.1.1 2001/07/15 22:52:46 avsm Exp $
|
|
--- mod_gzip.c.orig Tue Jun 19 22:07:58 2001
|
|
+++ mod_gzip.c Tue Jun 19 22:11:22 2001
|
|
@@ -7328,6 +7328,19 @@ long content_length
|
|
hbytes_out += mod_gzip_send(lbuf,mod_gzip_strlen(lbuf),r);
|
|
}
|
|
|
|
+ sprintf( lbuf, "Vary: Accept-Encoding" );
|
|
+
|
|
+ #ifdef MOD_GZIP_DEBUG1
|
|
+ mod_gzip_printf( "%s: HEADER: ADDING: lbuf=[%s]",cn,npp(lbuf));
|
|
+ #endif
|
|
+
|
|
+ mod_gzip_strcat( lbuf, "\r\n" );
|
|
+
|
|
+ if ( send_header )
|
|
+ {
|
|
+ hbytes_out += mod_gzip_send(lbuf,mod_gzip_strlen(lbuf),r);
|
|
+ }
|
|
+
|
|
sprintf( lbuf, "Content-Length: %ld",(long)content_length);
|
|
|
|
#ifdef MOD_GZIP_DEBUG1
|