about summary refs log tree commit diff
path: root/src/pronouns/web.clj
diff options
context:
space:
mode:
authorJoe Dytrych <j@dytry.ch>2016-02-15 20:08:12 +0000
committerJoe Dytrych <j@dytry.ch>2016-02-16 12:12:28 +0000
commita60cfd359c283d194c24831a5454bdd8cbfe2364 (patch)
treedaf74a7d6a179a5ad301b3674ca72cb9c437e7e5 /src/pronouns/web.clj
parentee81f454e9aa50c3667741a17843136805885ffb (diff)
JSON not found response, fix whitespace
Diffstat (limited to 'src/pronouns/web.clj')
-rw-r--r--src/pronouns/web.clj6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj
index 4ec1788..bf717eb 100644
--- a/src/pronouns/web.clj
+++ b/src/pronouns/web.clj
@@ -25,11 +25,11 @@
 
   (GET "/pronouns.css" {params :params}
      {:status 200
-      :headers {"Content-Type" "text/css"}
-      :body (slurp (io/resource "pronouns.css"))})
+     :headers {"Content-Type" "text/css"}
+     :body (slurp (io/resource "pronouns.css"))})
 
   (GET "/*" {params :params headers :headers}
-       (if (= "application/json" (get headers "accept"))
+       (if (= "application/json" (.toLowerCase (get headers "accept")))
          {:status 200
           :headers {"Content-Type" "application/json"}
           :body (pages/pronouns (:* params) pronouns-table :json)}