Merge pull request #710 from d2r/d2r-sys-stats-toggle-fix
Fix sys stats cookie being lost from UI requests
diff --git a/storm-core/src/clj/backtype/storm/ui/core.clj b/storm-core/src/clj/backtype/storm/ui/core.clj
index e2397c2..15d3739 100644
--- a/storm-core/src/clj/backtype/storm/ui/core.clj
+++ b/storm-core/src/clj/backtype/storm/ui/core.clj
@@ -803,9 +803,9 @@
))))
(def app
- (-> #'main-routes
- (wrap-reload '[backtype.storm.ui.core])
- catch-errors))
+ (handler/site (-> main-routes
+ (wrap-reload '[backtype.storm.ui.core])
+ catch-errors)))
(defn start-server! [] (run-jetty app {:port (Integer. (*STORM-CONF* UI-PORT))
:join? false}))