1.1 --- a/rt/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java Sun Apr 07 22:30:07 2013 +0200
1.2 +++ b/rt/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java Sun Apr 07 22:30:45 2013 +0200
1.3 @@ -177,6 +177,7 @@
1.4 if (r.httpPath.equals(request.getRequestURI())) {
1.5 LOG.log(Level.INFO, "Serving HttpResource for {0}", request.getRequestURI());
1.6 response.setContentType(r.httpType);
1.7 + r.httpContent.reset();
1.8 copyStream(r.httpContent, response.getOutputStream(), null);
1.9 }
1.10 }
2.1 --- a/rt/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java Sun Apr 07 22:30:07 2013 +0200
2.2 +++ b/rt/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/InvocationContext.java Sun Apr 07 22:30:45 2013 +0200
2.3 @@ -102,6 +102,7 @@
2.4 final String httpPath;
2.5
2.6 Resource(InputStream httpContent, String httpType, String httpPath) {
2.7 + httpContent.mark(Integer.MAX_VALUE);
2.8 this.httpContent = httpContent;
2.9 this.httpType = httpType;
2.10 this.httpPath = httpPath;