Explorar o código

Do not buffer the response.

This way Wicket is more close to the behavior of the other web framework
Martin Tzvetanov Grigorov %!s(int64=11) %!d(string=hai) anos
pai
achega
c520e84e8d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);
 	}
 }