We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8107ca8 commit 3d26e1eCopy full SHA for 3d26e1e
src/ring_spring_security/core.clj
@@ -90,11 +90,14 @@
90
(boot-spring server handler nil)))
91
92
(defn boot [join?]
93
- (jetty/run-jetty #'app
+ (let [server (jetty/run-jetty #'app
94
{:port 9090
95
:join? join?
96
- :configurator (fn [server] (boot-spring server #'app "classpath:security.xml"))
97
- :default-handler? false}))
+ :configurator (fn [server]
+ (boot-spring server #'app "classpath:security.xml"))})]
98
+ ;this is a hack to get around the handler ring-adapter-jetty forces on us
99
+ (doseq [handler (remove #(= (class %) org.mortbay.jetty.servlet.Context) (seq (.getHandlers server)))]
100
+ (.removeHandler server handler))))
101
102
(comment
103
(def jetty (boot true))
0 commit comments