Article delegate-en/3788 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Problem with Content-Encoding
28 Jun 2007 13:25:33 GMT (Yutaka Sato)
The DeleGate Project


In message <_A3787@delegate-en.ML_> on 06/28/07(20:15:59)
you "Bieber, Sebastian" <> wrote:
 |I just applied your patches to the original 9.5.6 version. Don't know if
 |this is of any interest to you, but i can confirm that the patched
 |version works perfecly!

Maybe you know it is not perfect because it does not apply gzip to the
data to which CFIscript is applied.  The gzip for HTTP-repsonse is
disabled when a FTOCL filter (a filter for the response data to be sent
toward the client) is specified, because it is necessary to pass
uncompressed data to the filter program.  But in the case where the filter
is a CFI script, the result of the filter is processed by DeleGate again
before it is sent finally to the client, so it can be gziped too.
I'll modity DeleGate to do gzip automatically with FTOCL=*.cfi, but
it can be done by adding a line as follows

  Output-Header:X-Q-Accept-Encoding: gzip

in your CFI script as follows for example.

  Content-Type: text/
  Body-Filter: filter-program
  Output-Header:X-Q-Accept-Encoding: gzip

  9 9   Yutaka Sato <>
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]