Version 0.2.0-SNAPSHOT
This commit is contained in:
parent
2bf43396f0
commit
3b11b678a1
2 changed files with 16 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue