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

[DeleGate-En] Re: Problem with Content-Encoding
27 Jun 2007 16:49:55 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A3781@delegate-en.ML_> on 06/27/07(20:29:36)
you "Bieber, Sebastian" <pyuhabdyi-jfjnzglfqznr.ml@ml.delegate.org> wrote:
 |While trying various different combinations of "acc-encoding"- and
 |"gen-encoding"-values, i found that decompressing, if neccessary,
 |gzip'ed content from the Zope server is no problem. But with none of the
 |tested configurations delegate would (re)compress the content. There
 |seems not to be a problem with the content itself or the communication
 |with the client, all pages/images/files are delivered "in perfect
 |health" - but uncompressed... 
 |This behaviour occurs identically with firefox, internet explorer or
 |lynx as client, respectively.

Ooops... It seems that I disabled it in DeleGate/8.6.0 (4 years ago)
in which I fixed it to cope with "Accept-Encoding: x-gzip" ...

! 8.6.0 030514 http.c: fixed to echo Accept-Encoding:x-gzip to Content-Encoding
...
diff -cr delegate8.5.9/src/http.c delegate8.6.0/src/http.c
*** delegate8.5.9/src/http.c	Mon Aug  4 06:59:52 2003
--- delegate8.6.0/src/http.c	Wed Jul 30 10:15:26 2003
***************
*** 1499,1505 ****
--- 1628,1637 ----
  			 || (Conn->xf_filtersCFI & XF_FTOCL) != 0
  			)
  			{
+ 				/*
  				sprintf(buf,"%s %s\r\n",F_AccEncodeX,"gzip");
+ 				*/
+ 				sprintf(buf,"%s %s\r\n",F_AccEncodeX,QX_accEnc);
  				wcc = strlen(buf);
  				fputs(buf,RX_tcp);
  				RX_wrHeadTotal += wcc;

By the modification, it became unabled to cope with a list value in
the filed as "Accept-Encoding: gzip,deflate".
I'll fix it as the enclosed patch to "src/filter.c", in the next
release (9.5.7 or 9.6.3).  Thank you.

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.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


*** ../delegate9.5.6/src/filter.c	Sat Feb 17 19:11:05 2007
--- src/filter.c	Thu Jun 28 01:36:23 2007
***************
*** 511,517 ****
--- 511,520 ----
  	if( !withGzip || gzip == 0 )
  		return 0;
  
+ 	/*
  	if( strcaseeq(enc,"gzip") || strcaseeq(enc,"x-gzip") ){
+ 	*/
+ 	if( isinListX(enc,"gzip","c") || isinListX(enc,"x-gzip","c") ){
  		Start = Time();
  		out = TMPFILE("gzip");
  		if( streq(gzip,"-") ){

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