From 4756d85e0b31eda680bbe8ba65ee84eec26f11a6 Mon Sep 17 00:00:00 2001 From: sostler Date: Sat, 20 Mar 2010 23:11:05 -0400 Subject: Fix room/chat routing bug --- src/site.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/site.clj b/src/site.clj index f36d740..16d7aee 100755 --- a/src/site.clj +++ b/src/site.clj @@ -757,7 +757,7 @@ ; TODO: cache policy for other static files (js, css, etc.) (let [cache-header (if (re-find pic-regex path) {:headers {"Cache-Control" "max-age=604800,public"}} - {})] + {}] [cache-header (serve-file dir path)])) @@ -778,7 +778,7 @@ (GET "/login" (login session params cookies)) (GET "/logout" (logout session)) (GET "/register" (serve-static "static" "register.html")) - (GET "/:room/chat" (no-cache (validated-chat session (-> request :route-params :room)))) + (GET "/:room/chat" (no-cache (validated-chat session (-> request :route-params :room) "chat"))) (GET "/chat" (no-cache (validated-chat session "RoomA" "chat"))) (GET "/chat/:t" (no-cache (validated-chat session "RoomA" (-> request :route-params :t)))) (GET "/browser" (browser session)) -- cgit v1.2.3-70-g09d2