summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-03-20 23:11:05 -0400
committersostler <sbostler@gmail.com>2010-03-20 23:11:05 -0400
commit4756d85e0b31eda680bbe8ba65ee84eec26f11a6 (patch)
tree5a512702aa168ecf4741acd4d22c40552fdf6056 /src
parentf6cfd190a8a118d08d0c66818c94028f4336f5bb (diff)
Fix room/chat routing bug
Diffstat (limited to 'src')
-rwxr-xr-xsrc/site.clj4
1 files changed, 2 insertions, 2 deletions
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))