 
            ; "post urls"
            (GET "/blog/:blogid/post/" [blogid :as request]
-               (render-html-posts-helper (Integer/parseInt blogid) request))
+               (html-response (render-html-posts-helper (Integer/parseInt blogid) request)))
            (GET "/blog/:bid/post/new" [bid]
                (if (not (data/blog-owner? bid))
                    (redirect templates/*permission-denied-uri*)
                    (let [int-blogid (Integer/parseInt bid)]
-                       (render-html-newpost (:title (data/get-blog int-blogid))
-                                            int-blogid))))
+                       (html-response
+                           (render-html-newpost
+                               (:title (data/get-blog int-blogid))
+                               int-blogid)))))
            (POST "/blog/:bid/post/new" [bid title content postdate :as request]
                (if (not (data/blog-owner? bid))
                    (redirect templates/*permission-denied-uri*)

                    (data/send-email email admin-email subject body)
                    (redirect-after-post "/")))
           (GET "/about" []
                (templates/about))


           ; "api urls"

           (GET templates/*account-url* [:as request]
               (if (not (ensure-secure request))
                   {:status 403}
                   (html-response (render-html-account (util/uri-from-request request)))))
           (POST templates/*account-url* [:as request]
               (if (not (ensure-secure request))
                   {:status 403}
