Skip to content
Browse files

micro-optimization: avoid calling thread local

  • Loading branch information...
1 parent e0400da commit c0e93bf57447d02a4dda354a21ba12694b3e74c4 Yann Simon committed Sep 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/src/play/server/PlayHandler.java
View
2 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 c0e93bf

Please sign in to comment.
Something went wrong with that request. Please try again.