[Pkg-owncloud-commits] [php-sabredav] 17/64: application/octet-stream as default content-type.
David Prévot
taffit at moszumanska.debian.org
Thu Dec 11 15:13:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 2.2.0alpha1
in repository php-sabredav.
commit 645e881ae051d845f427c7729ba22bbdd683946f
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Wed Nov 19 14:47:22 2014 +0100
application/octet-stream as default content-type.
---
lib/DAV/Browser/GuessContentType.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/DAV/Browser/GuessContentType.php b/lib/DAV/Browser/GuessContentType.php
index 6c7ae61..548c276 100644
--- a/lib/DAV/Browser/GuessContentType.php
+++ b/lib/DAV/Browser/GuessContentType.php
@@ -92,8 +92,10 @@ class GuessContentType extends DAV\ServerPlugin {
// Just grabbing the extension
$extension = strtolower(substr($fileName,strrpos($fileName,'.')+1));
- if (isset($this->extensionMap[$extension]))
+ if (isset($this->extensionMap[$extension])) {
return $this->extensionMap[$extension];
+ }
+ return 'application/octet-stream';
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list