diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-03-20 23:11:18 -0400 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-03-20 23:11:18 -0400 |
| commit | 9c8c445705064c4b951fc6b89325fcb045720d3c (patch) | |
| tree | b4db7016996df62418c0e663a99ef85bcde48bcc | |
| parent | 0c5fac0a3cc94157a1e210917e709e596d131ece (diff) | |
| parent | 4756d85e0b31eda680bbe8ba65ee84eec26f11a6 (diff) | |
Merge branch 'master' of /pichat/repo
| -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)) |
