[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spiffy relies on content-length (was Re: [Chicken-users] Spiffy reli
From: |
Graham Fawcett |
Subject: |
Re: Spiffy relies on content-length (was Re: [Chicken-users] Spiffy relies on removed proc.) |
Date: |
Sun, 16 Mar 2008 18:45:43 -0400 |
On Sun, Mar 16, 2008 at 6:06 PM, Peter Bex <address@hidden> wrote:
> On Sun, Mar 16, 2008 at 02:56:11PM -0700, Robin Lee Powell wrote:
> > With define-http-resource, *Spiffy* defines the headers, and it
> > never asks the body. In fact, the headers are sent before the body
> > is run.
>
> That's not entirely correct. Spiffy parameterizes the headers. You
> can override them in the body.
I'm glad I wasn't totally wrong, since I didn't look into Spiffy's
docs first. :-) But yes, this should work:
(current-reponse-headers (cons (cons "Content-Length" (->string clen))
(current-response-headers)))
Graham