[hunchentoot-devel] [patch] redirect* (allows to set status code)
Michael Weber
michaelw+tbnl at foldr.org
Tue Mar 11 11:15:23 UTC 2008
Hi,
attached is a patch which adds and exports a new function REDIRECT*
(including changes to documentation). It is like REDIRECT, except
that it has a keyword argument CODE instead of PERMANENTLY. This is
to allow returning 303 (See Other) while staying backwards compatible.
The alternative would be to add the CODE keyword argument to
REDIRECT, and figure out the semantics when both :code
and :permanently are given. I can prepare a patch for that, too, if
this is preferred (and somebody states the proposed behavior as
docstring ;)).
Cheers,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hunchentoot-redirect.patch
Type: application/octet-stream
Size: 7498 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20080311/715a9c94/attachment.obj>
-------------- next part --------------
More information about the Tbnl-devel
mailing list