mod_ext_filter and content-encoding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to write a filter to add a banner to some HTML pages.

I have used the following definition:

ExtFilterDefine rebootbanner mode=output \
    intype=text/html outtype=text/html \
   cmd="add_banner.sh"

The script contents boil down to:

echo header
cat
echo footer

This works fine for some pages, however other pages fail to display in
a browser.
Turns out that the issue is that the input to the filter is sometimes gzipped.
The header causes issues for the browser display.

How can I ensure that the filter is run before the output is gzipped?

Alternatively, how can I detect when the input is not in plain text so
I can skip the banner?

Sebb.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux