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