Article delegate-en/1264 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:<_A1263@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: rewriting problem with cgi program
30 Jul 2001 18:44:00 GMT feedback@delegate.org (Yutaka Sato)


On 07/31/01(00:32) I wrote in <_A1263@delegate-en.ML_>
 |By the way, you can take another solution without CFI.  Just disabling
 |"gzip" transfer encoding on the target HTTP server will do.

Anyway encoded response message is not good generally for DeleGate
except the DeleGate does nothing for it.  So I think removing
Accept-Encoding in request message should be the default behavior
of DeleGate.  To make DeleGate work so, I'll modify it like the
enclosed patch.

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan

diff -cr ../../delegate7.4.1/src/http.c ./src/http.c
*** ../../delegate7.4.1/src/http.c	Mon Jul 23 03:48:18 2001
--- ./src/http.c	Tue Jul 31 03:34:38 2001
***************
*** 3631,3636 ****
--- 3631,3639 ----
  	}
  	if( badServ(Conn,"beforeREQHEADx",BS_QHEAD,ts,fs,NULL) )
  		ts = NULLFP();
+ 	if( cpath || DO_DELEGATE || IsMounted /* or with filter, or ... */ ){
+ 		replaceFieldValue(genfields,"Accept-Encoding","");
+ 	}
  	fputs(genfields,ts);
  
  	if( badServ(Conn,"beforeREQBODYx",BS_QBODY,ts,fs,NULL) )
diff -cr ../../delegate7.4.1/mimekit/rfc822.c ./mimekit/rfc822.c
*** ../../delegate7.4.1/mimekit/rfc822.c	Wed Mar 14 15:40:12 2001
--- ./mimekit/rfc822.c	Tue Jul 31 03:20:23 2001
***************
*** 533,539 ****
--- 533,543 ----
  	}
  
  	if( strncasecmp(esp,value,strlen(value)) == 0 )
+ 	{
+ 		lineScan(esp,tmp);
+ 		if( strcasecmp(esp,value) == 0 )
  		return 0;
+ 	}
  
  	for( np = esp; ch = *np; np++ )
  		if( ch == '\r' || ch == '\n' )

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