Version 0.2.0-SNAPSHOT

This commit is contained in:
Simon Brooke 2018-07-19 17:59:34 +01:00
parent 2bf43396f0
commit 3b11b678a1
2 changed files with 16 additions and 1 deletions

View file

@ -20,7 +20,9 @@
;; (for example when using mock requests), then
;; .getContextPath might not exist
(try (.getContextPath ^ServletContext context)
(catch IllegalArgumentException _ context))
(catch IllegalArgumentException err
(log/warn "Failed to initialise servlet-context: " (.getMessage err))
context))
;; if the context is not specified in the request
;; we check if one has been specified in the environment
;; instead