Fixed crash under non-ARC

This commit is contained in:
Pierre-Olivier Latour
2014-04-01 14:07:42 -07:00
parent 4a3135db81
commit a8725319e1
+3 -3
View File
@@ -91,9 +91,9 @@ void GCDLogMessage(long level, NSString* format, ...) {
NSString* GCDWebServerGetMimeTypeForExtension(NSString* extension) {
static NSDictionary* _overrides = nil;
if (_overrides == nil) {
_overrides = @{
@"css": @"text/css"
};
_overrides = [[NSDictionary alloc] initWithObjectsAndKeys:
@"text/css", @"css",
nil];
}
NSString* mimeType = nil;
extension = [extension lowercaseString];