diff options
| -rwxr-xr-x | src/site.clj | 4 |
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)) |
