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

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)

The Same patch but with #'string-downcase removed, since the hashtable used #'equalp (thanks Zach). On 3/22/10, Ala'a (cmo-0) <amalawi@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

Hi Ala'a, thank you for your patch. I think it is useful. Can you please update a documentation update? See http://weitz.de/patches.html Thanks, Hans On Mon, Mar 22, 2010 at 23:00, Ala'a (cmo-0) <amalawi@gmail.com> wrote:
The Same patch but with #'string-downcase removed, since the hashtable used #'equalp (thanks Zach).
On 3/22/10, Ala'a (cmo-0) <amalawi@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
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
participants (2)
-
Ala'a (cmo-0)
-
Hans Hübner