final Frame frame = (Frame) msg;
final ByteBuf content = wrapWithFunction(frame.content(), ctx);
frame.release();
final FullHttpResponse response = new DefaultFullHttpResponse(request.getProtocolVersion(), OK, content);
response.headers().set(CONTENT_TYPE, Transports.CONTENT_TYPE_JAVASCRIPT);
response.headers().set(CONTENT_LENGTH, content.readableBytes());
response.headers().set(CONNECTION, HttpHeaders.Values.CLOSE);
Transports.setNoCacheHeaders(response);
Transports.setSessionIdCookie(response, config, request);
ctx.writeAndFlush(response, promise);
} else {