Move unwrap response before context caching
@@ -338,6 +338,7 @@ public class DefaultRequestCoordinator extends AbstractRequestCoordinator implem
}
} finally {
UserCoreUtil.setDomainInThreadLocal(null);
+ unwrapResponse(responseWrapper, sessionDataKey, response, context);
if (context != null) {
// Mark this context left the thread. Now another thread can use this context.
context.setActiveInAThread(false);
@@ -359,7 +360,6 @@ public class DefaultRequestCoordinator extends AbstractRequestCoordinator implem
FrameworkUtils.removeALORCookie(request, response);
}
}
- unwrapResponse(responseWrapper, sessionDataKey, response, context);
}
}
