Created
October 19, 2009 11:34
-
-
Save jmesnil/213301 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn verify-challenge | |
[callback mode topic challenge] | |
(let [url (build-callback-url callback mode topic challenge)] | |
(try | |
(= challenge (.trim (apply str (:body-seq (request url))))) 204 | |
(catch Exception ex (failed-challenge callback (.getMessage ex)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment