From 5e8a673f84b1bf72d7bbcb28c1565b1d22e19a30 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Sun, 16 Nov 2003 15:49:47 +0000 Subject: [PATCH] r8226: update to new dtd writing functions --- utils.lisp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/utils.lisp b/utils.lisp index 2f3a213..d6ebf83 100644 --- a/utils.lisp +++ b/utils.lisp @@ -12,13 +12,16 @@ (in-package #:modlisp) +(defun format->string (fmt) + (case fmt + (:html "text/html") + (:xml "text/xml") + (:text "text/plain") + (otherwise fmt))) + (defun format-string (fmt headers) `(("Content-Type" . - ,(case fmt - (:html "text/html") - (:xml "text/xml") - (:text "text/plain") - (otherwise fmt))) + ,(format->string fmt)) . ,headers)) (defmacro write-response ((&key headers len (status "200 OK")) &body body) -- 2.34.1