Added a log for size
This commit is contained in:
parent
07044434fa
commit
f182f5e6ca
|
@ -354,9 +354,12 @@ public class DownloadServlet extends HttpServlet{
|
|||
resp.setHeader("Content-Disposition", contentDisposition+"; filename=\"" + itemName + "\"" );
|
||||
|
||||
//Fixing Incident: 18926, replacing workspaceFileItem.getSize() with ItemStreamDescriptor.getSize()
|
||||
if(descr.getSize()!=null && descr.getSize()>0)
|
||||
if(descr.getSize()!=null && descr.getSize()>0) {
|
||||
resp = setContentLength(resp, descr.getSize());
|
||||
}
|
||||
|
||||
logger.info("The size is: "+descr.getSize());
|
||||
|
||||
//MODIFIED 22-05-2013 CLOSE STREAM
|
||||
OutputStream out = resp.getOutputStream();
|
||||
InputStream is = descr.getStream();
|
||||
|
|
Loading…
Reference in New Issue