On Sun, Mar 16, 2008 at 6:06 PM, Peter Bex <[EMAIL PROTECTED]> 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


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to