Mercurial > hg > human-echolocation-java-webapp
diff src/HumanEchoServlet.java @ 32:0c66cff0d1cc
The page is now generated using a simple form (using GET), and each time the page is generated a player is generated as well; small CSS changes.
| author | luisf <luis.figueira@eecs.qmul.ac.uk> |
|---|---|
| date | Tue, 10 Dec 2013 17:39:27 +0000 |
| parents | 52adafab20c1 |
| children | 91ecbdda6f4a |
line wrap: on
line diff
--- a/src/HumanEchoServlet.java Tue Dec 10 17:38:43 2013 +0000 +++ b/src/HumanEchoServlet.java Tue Dec 10 17:39:27 2013 +0000 @@ -118,7 +118,7 @@ File wavfile = new File(outputfname); //set response headers - response.setContentType("audio/wav"); + response.setContentType("audio/x-wav"); response.addHeader("Content-Disposition","attachment; filename=" + outputfname ); response.setContentLength( (int) wavfile.length( ) ); @@ -141,10 +141,6 @@ buf.close( ); } - System.out.println("MCRROOT: " + System.getenv("MCRROOT")); - System.out.println("PATH: " + System.getenv("PATH")); - System.out.println(MCRConfiguration.isInstalledMCR()); - - logger.warn("tmpdir " + tempdir); + logger.info("Wrote file:" + outputfname); } }
