Tiger build fix.
authormitz <mitz@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Oct 2007 00:49:23 +0000 (00:49 +0000)
committermitz <mitz@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Oct 2007 00:49:23 +0000 (00:49 +0000)
        * WebView/WebDataSource.mm:
        (-[WebDataSource _MIMETypeOfResponse:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26759 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebView/WebDataSource.mm

index 8670de631c229af32449d54f510f58538067830f..c2f9f38a1c38479bbd517e7d502006e04200b5fa 100644 (file)
@@ -1,3 +1,10 @@
+2007-10-18  Dan Bernstein  <dan.bernstein@apple.com>
+
+        Tiger build fix.
+
+        * WebView/WebDataSource.mm:
+        (-[WebDataSource _MIMETypeOfResponse:]):
+
 2007-10-18  Dan Bernstein  <dan.bernstein@apple.com>
 
         Reviewed by Adam Roben.
index 0fea36d14d26f2bcefbae92aa4887fc54c7e80f6..4be83ba727928d60734bbf64231834d18a7ff481 100644 (file)
@@ -136,17 +136,19 @@ static inline void addTypesFromClass(NSMutableDictionary *allTypes, Class objCCl
     return [WebView _viewClass:nil andRepresentationClass:&repClass forMIMEType:MIMEType] ? repClass : nil;
 }
 
-#ifndef BUILDING_ON_TIGER
 - (NSString *)_MIMETypeOfResponse:(NSURLResponse *)response
 {
+#ifdef BUILDING_ON_TIGER
+    return [response MIMEType];
+#else
     // FIXME: This is part of a workaround for <rdar://problem/5321972> REGRESSION: Plain text document from HTTP server detected
     // as application/octet-stream
     NSString *MIMEType = [response MIMEType];
     if ([MIMEType isEqualToString:@"application/octet-stream"] && [response isKindOfClass:[NSHTTPURLResponse class]] && [[[(NSHTTPURLResponse *)response allHeaderFields] objectForKey:@"Content-Type"] hasPrefix:@"text/plain"])
         return @"text/plain";
     return MIMEType;
-}
 #endif
+}
 @end
 
 @implementation WebDataSource (WebPrivate)