[Yanel-commits] rev 25931 -
public/yanel/trunk/src/contributions/resources/davcollection/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Thu Jul 12 00:55:43 CEST 2007
Author: michi
Date: 2007-07-12 00:55:43 +0200 (Thu, 12 Jul 2007)
New Revision: 25931
Modified:
public/yanel/trunk/src/contributions/resources/davcollection/src/java/org/wyona/yanel/impl/resources/DavCollection.java
Log:
content type fixed
Modified: public/yanel/trunk/src/contributions/resources/davcollection/src/java/org/wyona/yanel/impl/resources/DavCollection.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/davcollection/src/java/org/wyona/yanel/impl/resources/DavCollection.java 2007-07-11 22:54:46 UTC (rev 25930)
+++ public/yanel/trunk/src/contributions/resources/davcollection/src/java/org/wyona/yanel/impl/resources/DavCollection.java 2007-07-11 22:55:43 UTC (rev 25931)
@@ -85,7 +85,8 @@
org.wyona.yarep.core.Path[] children = contentRepo.getChildren(p);
for (int i = 0; i < children.length; i++) {
if (contentRepo.isResource(children[i])) {
- this.propfindAddResource(request.getContextPath() + "/" + getRealm().getMountPoint() + children[i].toString(), "R: " + children[i].getName(), WEBDAV_EL_RES, "httpd/unix-directory", new Date(contentRepo.getLastModified(children[i])).toGMTString());
+ // TODO: Set mime type instead application/octet-stream!
+ this.propfindAddResource(request.getContextPath() + "/" + getRealm().getMountPoint() + children[i].toString(), "R: " + children[i].getName(), WEBDAV_EL_RES, "application/octet-stream", new Date(contentRepo.getLastModified(children[i])).toGMTString());
} else if (contentRepo.isCollection(children[i])) {
this.propfindAddResource(request.getContextPath() + "/" + getRealm().getMountPoint() + children[i].toString(), "C: " + children[i].getName(), WEBDAV_EL_COLL, "httpd/unix-directory", new Date(contentRepo.getLastModified(children[i])).toGMTString());
More information about the Yanel-commits
mailing list