Permalink
Browse files

sniffing for html

git-svn-id: https://ichm.googlecode.com/svn/trunk@70 e1f60c0e-2a54-0410-99cd-d3f60e83567d
  • Loading branch information...
1 parent 8fa6815 commit 6d3e52b533c8a2c9616ce34af6284250f5b82fe6 iamawalrus committed Oct 17, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 ITSSProtocol.m
View
@@ -65,7 +65,8 @@ -(void)startLoading
}
NSString *type = nil;
- if ([[[path pathExtension] lowercaseString] isEqualToString:@"html"])
+ if ([[[path pathExtension] lowercaseString] isEqualToString:@"html"] ||
+ [[[path pathExtension] lowercaseString] isEqualToString:@"htm"])
type = @"text/html";
NSURLResponse *response = [[NSURLResponse alloc] initWithURL: [[self request] URL]
MIMEType:type

0 comments on commit 6d3e52b

Please sign in to comment.