Permalink
Browse files
Keep from dropping sessions when the flash is not set.
- Loading branch information...
Showing
with
2 additions
and
1 deletion.
-
+2
−1
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