[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
darin
darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:57:53 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 7393c9ea0d8f315845160048531ee10bbe59803c
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Sep 25 17:00:02 2003 +0000
Reviewed by John.
- fixed 3176853 -- can't attach files that have no extensions with Yahoo mail (bad Content-Type headers)
* WebCoreSupport.subproj/WebBridge.m: (-[WebBridge MIMETypeForPath:]):
Return @"application/octet-stream" rather than nil or empty string when the type is not known.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 821c8c8..b8f9cf3 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,12 @@
+2003-09-25 Darin Adler <darin at apple.com>
+
+ Reviewed by John.
+
+ - fixed 3176853 -- can't attach files that have no extensions with Yahoo mail (bad Content-Type headers)
+
+ * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge MIMETypeForPath:]):
+ Return @"application/octet-stream" rather than nil or empty string when the type is not known.
+
2003-09-24 Darin Adler <darin at apple.com>
Reviewed by Maciej.
diff --git a/WebKit/WebCoreSupport.subproj/WebBridge.m b/WebKit/WebCoreSupport.subproj/WebBridge.m
index 8568c57..b9f9016 100644
--- a/WebKit/WebCoreSupport.subproj/WebBridge.m
+++ b/WebKit/WebCoreSupport.subproj/WebBridge.m
@@ -803,7 +803,8 @@ static BOOL loggedObjectCacheSize = NO;
{
ASSERT(path);
NSString *extension = [path pathExtension];
- return [[NSURLFileTypeMappings sharedMappings] MIMETypeForExtension:extension];
+ NSString *type = [[NSURLFileTypeMappings sharedMappings] MIMETypeForExtension:extension];
+ return [type length] == 0 ? @"application/octet-stream" : type;
}
- (void)handleMouseDragged:(NSEvent *)event
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list