This commit is contained in:
Pierre-Olivier Latour
2014-03-29 17:41:36 -07:00
parent 223bc4ba16
commit 4446c1198f
2 changed files with 5 additions and 3 deletions

View File

@@ -25,6 +25,8 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#import <TargetConditionals.h>
#import "GCDWebServerRequest.h"
#import "GCDWebServerResponse.h"

View File

@@ -86,9 +86,9 @@ void GCDLogMessage(long level, NSString* format, ...) {
NSString* GCDWebServerGetMimeTypeForExtension(NSString* extension) {
static NSDictionary* _overrides = nil;
if (_overrides == nil) {
_overrides = [[NSDictionary alloc] initWithObjectsAndKeys:
@"text/css", @"css",
nil];
_overrides = @{
@"css": @"text/css"
};
}
NSString* mimeType = nil;
extension = [extension lowercaseString];