Re: cookie parsing bug fix

2008-11-26 Thread Alexander Burger
Hi Tomas,

 leaves single space in front of all cookie names except the first one.
 ...
 (cons (htArg (clip (car L))) (htArg (cadr L))) )

Thanks! I didn't notice that, as I don't use cookies in applications,
and obiously never tested with more than one :-)

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]


cookie parsing bug fix

2008-11-25 Thread Tomas Hlavaty
Hi Alex,

in file @lib/http.l

(de _htHead ()
..
   (setq *Cookies
  (mapcar
 '((L)
(setq L (split L =))
(cons (htArg (car L)) (htArg (cadr L))) )
 (split @X ;) ) ) )

leaves single space in front of all cookie names except the first one.
I am using FireFox and cookies are separated by ;  so I had to add
'clip' for the cookie name:

(cons (htArg (clip (car L))) (htArg (cadr L))) )

I did not test it with other browsers but I assume the problem would
be general.

Cheers,

Tomas
-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]