Permalink
Browse files

Merge pull request #340 from yanns/micro_optimization

Micro optimization
  • Loading branch information...
2 parents a03ae6c + c0e93bf commit 1b7e44ddac0bd1684f7e5f3857eb9d8191340db3 @pepite pepite committed Sep 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/src/play/server/PlayHandler.java
@@ -823,7 +823,7 @@ public void serveStatic(RenderStatic renderStatic, ChannelHandlerContext ctx, Re
if ((file == null || !file.exists())) {
serve404(new NotFound("The file " + renderStatic.file + " does not exist"), ctx, request, nettyRequest);
} else {
- boolean raw = Play.pluginCollection.serveStatic(file, Request.current(), Response.current());
+ boolean raw = Play.pluginCollection.serveStatic(file, request, response);
if (raw) {
copyResponse(ctx, request, response, nettyRequest);
} else {

0 comments on commit 1b7e44d

Please sign in to comment.