Re: [Chicken-users] http egg can't parse valid HTTP headers

2009-02-05 Thread Peter Bex
On Wed, Feb 04, 2009 at 11:27:24PM -0800, Drew Hess wrote: > Hi, > > The regex used to parse HTTP headers in http:read-request-attributes in the > http egg isn't quite right. > > (let ((rx (if (feature? 'pregexp) > "([\\-A-Za-z0-9]+):[ ]*([^ ].*)" > "([-A-Za-z0-9]+)

Re: [Chicken-users] http egg can't parse valid HTTP headers

2009-02-05 Thread Mario Domenech Goulart
Hi Drew On Wed, 04 Feb 2009 23:27:24 -0800 Drew Hess 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

Re: [Chicken-users] Chicken svn doesn't want to compile on x86-64

2009-02-05 Thread Adam C. Emerson
felix winkelmann writes: > On Sun, Feb 1, 2009 at 6:49 PM, Adam C. Emerson wrote: > Hm... setup-download.so should not be linked with the static libchicken > (which seems to be the case here). This is on Linux, right? > > Could you send me a build log, please? I did a slurp from subversion bef

[Chicken-users] http egg can't parse valid HTTP headers

2009-02-05 Thread Drew Hess
Hi, The regex used to parse HTTP headers in http:read-request-attributes in the http egg isn't quite right. (let ((rx (if (feature? 'pregexp) "([\\-A-Za-z0-9]+):[ ]*([^ ].*)" "([-A-Za-z0-9]+):[ ]*([^ ].*)") ) ) RFC 2616 states in Section 4.2 that HTTP headers "