Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1086 → Rev 1087

/impl/src/java/pt/estgp/estgweb/web/FTPFileProxy.java
196,7 → 196,7
InputStream stream = client.retrieveFileStream(file.getName());
response.setContentLength((int)file.getSize());
response.setContentType(MimeTypeGuesser.getInstance().guessMimeType(file.getName()));
response.setHeader("Content-disposition","inline; filename=" + DiacriticFilter.clean(file.getName()));
response.setHeader("Content-disposition","attachment; filename=" + DiacriticFilter.clean(file.getName()));
StreamsUtils.inputStream2OutputStream(stream, response.getOutputStream());
stream.close();