[MRM-781] additional fixes to webdav

Submitted by: James William Dumay


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@649382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2008-04-18 06:30:31 +00:00
parent fada72428f
commit cc0ce2d707
2 changed files with 4 additions and 2 deletions

View File

@ -133,6 +133,8 @@ public class ArchivaDavResource implements DavResource
if (!isCollection())
{
IOUtils.copy(new FileInputStream(localResource), outputContext.getOutputStream());
outputContext.setContentLength(getContentLength());
outputContext.setContentType(getContentType());
}
else
{

View File

@ -269,7 +269,7 @@ public class ArchivaDavResourceFactory implements DavResourceFactory, Auditable
}
catch ( RepositoryMetadataException e )
{
log.error(e.getMessage(), e);
/* eat it */
}
try
@ -283,7 +283,7 @@ public class ArchivaDavResourceFactory implements DavResourceFactory, Auditable
}
catch ( RepositoryMetadataException e )
{
log.error(e.getMessage(), e);
/* eat it */
}
return false;