Permalink
Browse files

Keep from dropping sessions when the flash is not set.

  • Loading branch information...
1 parent c6f6476 commit 11a170bbfa55aa814242bdaa08370764a4982763 @lloydhome lloydhome committed with weavejester May 26, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 ring-core/src/ring/middleware/flash.clj
View
3 ring-core/src/ring/middleware/flash.clj
@@ -15,5 +15,6 @@
:flash flash)
response (handler request)
session (if-let [flash (response :flash)]
- (assoc (response :session) :_flash flash))]
+ (assoc (response :session) :_flash flash)
+ session)]
(assoc response :session session))))

0 comments on commit 11a170b

Please sign in to comment.