Skip to content
This repository has been archived by the owner on Nov 16, 2017. It is now read-only.

Commit

Permalink
RF-13250: postpone Meteor object instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
pslegr authored and Lukas Fryc committed Feb 25, 2014
1 parent fdb79dd commit 71687ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
HttpServletResponse httpResp = (HttpServletResponse) response;

if ("GET".equals(httpReq.getMethod())) {
Meteor meteor = Meteor.build(httpReq, SCOPE.REQUEST, Collections.<BroadcastFilter>emptyList(), null);

String pushSessionId = httpReq.getParameter(PUSH_SESSION_ID_PARAM);

Session session = null;
Expand All @@ -100,6 +98,8 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha

httpResp.setContentType("text/plain");

Meteor meteor = Meteor.build(httpReq, SCOPE.REQUEST, Collections.<BroadcastFilter>emptyList(), null);

try {
Request pushRequest = new RequestImpl(meteor, session);

Expand Down

0 comments on commit 71687ce

Please sign in to comment.