msmith - in flumotion/branches/mike-http-improvements-1: .
flumotion/component/misc/httpfile
flumotion-commit at lists.fluendo.com
flumotion-commit at lists.fluendo.com
Wed Oct 4 11:57:07 CEST 2006
Author: msmith
Date: Wed Oct 4 11:57:06 2006
New Revision: 3936
Modified:
flumotion/branches/mike-http-improvements-1/ChangeLog
flumotion/branches/mike-http-improvements-1/flumotion/component/misc/httpfile/httpfile.py
Log:
* flumotion/component/misc/httpfile/httpfile.py:
Disable directory listings from httpfile component.
Modified: flumotion/branches/mike-http-improvements-1/ChangeLog
==============================================================================
--- flumotion/branches/mike-http-improvements-1/ChangeLog (original)
+++ flumotion/branches/mike-http-improvements-1/ChangeLog Wed Oct 4 11:57:06 2006
@@ -1,6 +1,11 @@
2006-10-04 Michael Smith <msmith at fluendo.com>
* flumotion/component/misc/httpfile/httpfile.py:
+ Disable directory listings from httpfile component.
+
+2006-10-04 Michael Smith <msmith at fluendo.com>
+
+ * flumotion/component/misc/httpfile/httpfile.py:
* flumotion/component/misc/httpfile/httpfile.xml:
Working Range requests.
Modified: flumotion/branches/mike-http-improvements-1/flumotion/component/misc/httpfile/httpfile.py
==============================================================================
--- flumotion/branches/mike-http-improvements-1/flumotion/component/misc/httpfile/httpfile.py (original)
+++ flumotion/branches/mike-http-improvements-1/flumotion/component/misc/httpfile/httpfile.py Wed Oct 4 11:57:06 2006
@@ -177,6 +177,10 @@
self.transfer = static.FileTransfer(f, size, request)
return server.NOT_DONE_YET
+ def directoryListing(self):
+ # disallow directory listings
+ return self.childNotFound
+
def createSimilarFile(self, path):
self.debug("createSimilarFile at %r", path)
f = self.__class__(path, self._requestFinished, self.component)
More information about the flumotion-commit
mailing list