[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] http egg can't parse valid HTTP headers
From: |
Mario Domenech Goulart |
Subject: |
Re: [Chicken-users] http egg can't parse valid HTTP headers |
Date: |
Thu, 05 Feb 2009 13:40:47 -0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Hi Drew
On Wed, 04 Feb 2009 23:27:24 -0800 Drew Hess <address@hidden> wrote:
> Changing the definition of the nested
> accum procedure from this:
>
> (define (rfc822-header->list iport #!key strict? (reader (cut read-line <>)))
> (define (accum name bodies r)
> (cons (list name (string-concatenate-reverse bodies)) r))
>
> to this:
>
> (define (rfc822-header->list iport #!key strict? (reader (cut read-line <>)))
> (define (accum name bodies r)
> (cons (cons name (string-concatenate-reverse bodies)) r))
>
> makes it a drop-in replacement for http:read-request-attributes, as far
> as I can tell, except for the differences in error-handling.
A side note: last time I checked, string-intersperse seemed to be a
little faster than string-concatenate. So, I guess
(string-intersperse (reverse bodies) "")
would be faster than
(string-concatenate-reverse bodies)
Best wishes.
Mario