[zorp-hu] nem megy

Balazs Scheidler bazsi@balabit.hu
Fri, 6 Apr 2001 14:04:33 +0200


On Fri, Apr 06, 2001 at 01:59:26PM +0200, Balazs Scheidler wrote:
> On Wed, Apr 04, 2001 at 03:22:34PM +0200, Kosa Attila wrote:
> > Hello!
> > Talaltam megint egy cimet, ami nem mukodik a Zorpon
> > keresztul. Meg tudnatok mondani, hogy miert nem?
> > 
> > http://www.msnbc.com/news/551764.asp?bt=msn&btu=http://go.msn.com/zzj/1/1.asp?target=http://msn.com
> 
> probald meg ezt a patchet (lehetoleg az e-bay-es cimre is)
> 
> diff -u -r1.54 http.c
> --- http.c      2001/04/04 17:25:46     1.54
> +++ http.c      2001/04/06 11:57:17
> @@ -1028,6 +1028,9 @@
>            z_proxy_leave(self);
>            return FALSE;
>          }
> +      /* strip trailing white space */
> +      while (line_length > 0 && line[line_length - 1] == ' ') 
> +        line_length--;
>        g_string_append_len(headers, line, line_length);
>        
>        g_string_append(headers, "\r\n");

bocs, a fenti patch a 0.9-es zorphoz valo, probald inkabb ezt:

diff -u -r1.41.2.3 http.c
--- http.c	2001/03/23 09:31:47	1.41.2.3
+++ http.c	2001/04/06 12:03:46
@@ -938,6 +938,11 @@
           z_func_leave(self, HTTP_DEBUG);
           return FALSE;
         }
+        
+      /* strip trailing white space */
+      while (line_length > 0 && line[line_length - 1] == ' ') 
+        line_length--;
+        
       g_string_append_len(headers, line, line_length);
       
       g_string_append(headers, "\r\n");


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1