Skip to content

Commit

Permalink
Merge branch 'fix/windows-firefox' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
kawasima committed Aug 30, 2016
2 parents efd6b2a + 9c2c11b commit b67b6fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/clj/job_streamer/control_bus/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
(:require [clojure.tools.logging :as log]
[clojure.edn :as edn]
[clojure.java.io :as io]
[datomic.api :as d])
[datomic.api :as d]
[ring.util.request :refer [content-type]])
(:import [org.jsoup Jsoup]))

(defn to-int [n default-value]
Expand Down Expand Up @@ -34,7 +35,7 @@
job-id (or job-id (d/tempid :db.part/user)) ]
(concat [{:db/id job-id
:job/name (:job/name job)
:job/restartable? (get job :job/restartable? true)
:job/restartable? (get job :job/restartable? true)
:job/edn-notation (pr-str job)
:job/steps step-refs
:job/exclusive? (get job :job/exclusive? false)}]
Expand Down Expand Up @@ -129,7 +130,7 @@
(when (#{:put :post} (get-in context [:request :request-method]))
(try
(if-let [body (body-as-string context)]
(case (get-in context [:request :content-type])
(case (or (content-type (:request context)) (get-in context [:request :content-type]))
"application/edn" [false {:edn (edn/read-string body)}]
"application/xml" [false {:edn (xml->edn body)}]
false)
Expand Down

0 comments on commit b67b6fc

Please sign in to comment.