Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Notices displayed correctly on multiple redirects

  • Loading branch information...
commit d3d8f52ef95b25fb9ed47c669c8ec6002011583c 1 parent 897884b
@dpp dpp authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 web/webkit/src/main/scala/net/liftweb/http/LiftSession.scala
View
6 web/webkit/src/main/scala/net/liftweb/http/LiftSession.scala
@@ -1054,7 +1054,7 @@ class LiftSession(private[http] val _contextPath: String, val uniqueId: String,
case _ => LiftRules.notFoundOrIgnore(request, Full(this))
}
} finally {
- notices = S.getNotices
+ notices = S.getAllNotices
}
case _ =>
@@ -1121,7 +1121,7 @@ class LiftSession(private[http] val _contextPath: String, val uniqueId: String,
}
private[http] def handleRedirect(re: ResponseShortcutException, request: Req): LiftResponse = {
- if (re.doNotices) notices = S.getNotices
+ if (re.doNotices) notices = S.getAllNotices
re.response
}
@@ -1175,7 +1175,7 @@ class LiftSession(private[http] val _contextPath: String, val uniqueId: String,
private[http] def checkRedirect(resp: LiftResponse): LiftResponse = resp match {
case RedirectWithState(uri, state, cookies) =>
state.msgs.foreach(m => S.message(m._1, m._2))
- notices = S.getNotices
+ notices = S.getAllNotices
RedirectResponse(attachRedirectFunc(uri, state.func), cookies: _*)
case _ => resp
}
Please sign in to comment.
Something went wrong with that request. Please try again.