Skip to content

Commit

Permalink
if-not -> when-not
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias committed Jul 20, 2015
1 parent 2e389b9 commit adb8d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demo/http_kit.clj
Expand Up @@ -28,7 +28,7 @@
{:on-message (fn [channel data]
(async/send! channel data))
:on-open (fn [channel]
(if-not (:websocket? ring-request)
(when-not (:websocket? ring-request)
(async/send! channel {:status 200
:headers {"Content-Type" "text/plain"}
:body "Long polling?"}
Expand Down

0 comments on commit adb8d23

Please sign in to comment.