Re: [Simpleweb-Support] Extra Transfer-Encoding header
                
                Brought to you by:
                
                    niallg
                    
                
            
            
        
        
        
    | 
     
      
      
      From: Niall G. <gal...@ya...> - 2006-11-04 19:05:42
      
     
   | 
Hi Jerome,=0A=0AThanks for the feedback on this, Ill make sure the problem =
is resolved on the next release. Also, I think your right regarding the sit=
e menus, Ill rearrange them.=0A =0ACheers,=0A=0ANiall=0A=0A=0A----- Origina=
l Message ----=0AFrom: Jerome Louvel <co...@no...>=0ATo: Simple sup=
port and user issues <sim...@li...>=0ASent: Wedn=
esday, November 1, 2006 5:26:25 AM=0ASubject: Re: [Simpleweb-Support] Extra=
 Transfer-Encoding header=0A=0A=0AHi again,=0A=0ALooking at the Simple code=
, I've noticed that if the setContentLength() is=0Anot called on Simple's R=
esponse then a "-1" value is assumed (unknown=0Alength). So I'm now setting=
 it to "0" when I don't have a response entity.=0AThis removes the "Transfe=
r-Encoding: chunked" header. =0A=0ANow, I have a "Content-Length: 0" header=
 which is OK, but should probably be=0Aremoved. This can be done by patchin=
g the setContentLength(int length)=0Amethod in MonitoredResponse as below:=
=0A=0A + this.length =3D length;=0A - set("Content-Length", String.valueOf(=
length));=0A + if(length > 0) set("Content-Length", String.valueOf(length))=
;=0A=0ACould you integrate this patch to the next release Simple?=0A=0ABTW,=
 the Resources/Downloads link on the front page is a bit misleading: I=0Aal=
ways expect to get the downloads page instead of the statistics. Maybe it=
=0Ashould be renamed and the Simple/Download menu entry be moved to the=0AR=
esources menu too?=0A=0ABest regards,=0AJerome=0A=0A> -----Message d'origin=
e-----=0A> De : sim...@li... =0A> [mailt=
o:sim...@li...] De =0A> la part de Jerom=
e Louvel=0A> Envoy=E9 : mercredi 1 novembre 2006 12:16=0A> =C0 : simpleweb-=
su...@li...=0A> Objet : [Simpleweb-Support] Extra Transfe=
r-Encoding header=0A> =0A> =0A> Hi Niall,=0A> =0A> It appears that Simple i=
s adding an extra "Transfer-Encoding: chunked"=0A> header to responses that=
 don't contain an entity, like 304 responses.=0A> =0A> I'm having some issu=
es with Safari browsers and suspect this, =0A> among other=0A> things, to b=
e the reason. =0A> =0A> Is there a way to disable this behavior, or could t=
his be fixed?=0A> =0A> Best regards,=0A> Jerome Louvel=0A> =0A> =0A> ------=
--------------------------------------------------------=0A> -----------=0A=
> Using Tomcat but need to do more? Need to support web =0A> services, secu=
rity?=0A> Get stuff done quickly with pre-integrated technology to make =0A=
> your job easier=0A> Download IBM WebSphere Application Server v.1.0.1 bas=
ed on =0A> Apache Geronimo=0A> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&ki=
d=3D120709&bid=3D263057&;=0A> dat=3D121642=0A> ____________________________=
___________________=0A> Simpleweb-Support mailing list=0A> Simpleweb-Suppor=
t...@li...=0A> https://lists.sourceforge.net/lists/listinfo/si=
mpleweb-support=0A=0A=0A---------------------------------------------------=
----------------------=0AUsing Tomcat but need to do more? Need to support =
web services, security?=0AGet stuff done quickly with pre-integrated techno=
logy to make your job easier=0ADownload IBM WebSphere Application Server v.=
1.0.1 based on Apache Geronimo=0Ahttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&=
kid=3D120709&bid=3D263057&dat=3D121642=0A__________________________________=
_____________=0ASimpleweb-Support mailing lis...@li...=
urceforge.net=0Ahttps://lists.sourceforge.net/lists/listinfo/simpleweb-supp=
ort=0A=0A=0A=0A=0A
 |