[hunchentoot-devel] suggested imporvement: setting content-type with keywords

Ala'a (cmo-0) amalawi at gmail.com
Mon Mar 22 22:00:22 UTC 2010


The Same patch but with #'string-downcase removed, since the hashtable
used #'equalp (thanks Zach).

On 3/22/10, Ala'a (cmo-0) <amalawi at gmail.com> wrote:
> Hi,
>
> Here is a patch against the stable release of hunchentoot 1.1.0. This
> patch will allow the
> API users to set the content type via keywords, for example:
>
> (setf (content-type*) :pdf)  or :jpeg, :svg, :css
>
> plus the normal usage
>
> (setf (content-type*) "application/pdf")
>
> regards,
>
> Ala'a (cmo-0)
>


-- 
Eng. Ala'a Mohammad Alawi
Private Office Of Shiek Tahnoon Bin Mohammad Al Nahyan
Engineering & Maintenance Department
P.O. Box 3853
Abu Dhabi, U.A.E.
Tel : +971 02 6345202
Fax: +971 02 6211900, +971 02 6323932
Mobile: +971 050 8262596
-------------- next part --------------
A non-text attachment was scrubbed...
Name: content-type-by-keywords-v2.udiff
Type: application/octet-stream
Size: 874 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20100323/01ea19b7/attachment.obj>


More information about the Tbnl-devel mailing list