浏览代码

Do not buffer the response.

This way Wicket is more close to the behavior of the other web framework
Martin Tzvetanov Grigorov 11 年之前
父节点
当前提交
c520e84e8d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      wicket/src/main/java/hellowicket/WicketApplication.java

+ 2 - 0
wicket/src/main/java/hellowicket/WicketApplication.java

@@ -29,5 +29,7 @@ public class WicketApplication extends WebApplication
 		// add your configuration here
     mountResource("/json", new HelloJsonReference());
     mountResource("/db", new HelloDbReference());
+
+    getRequestCycleSettings().setBufferResponse(false);
 	}
 }