mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-04-24 00:00:04 +08:00
Fixes
This commit is contained in:
@@ -25,6 +25,8 @@
|
|||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#import <TargetConditionals.h>
|
||||||
|
|
||||||
#import "GCDWebServerRequest.h"
|
#import "GCDWebServerRequest.h"
|
||||||
#import "GCDWebServerResponse.h"
|
#import "GCDWebServerResponse.h"
|
||||||
|
|
||||||
|
|||||||
@@ -86,9 +86,9 @@ void GCDLogMessage(long level, NSString* format, ...) {
|
|||||||
NSString* GCDWebServerGetMimeTypeForExtension(NSString* extension) {
|
NSString* GCDWebServerGetMimeTypeForExtension(NSString* extension) {
|
||||||
static NSDictionary* _overrides = nil;
|
static NSDictionary* _overrides = nil;
|
||||||
if (_overrides == nil) {
|
if (_overrides == nil) {
|
||||||
_overrides = [[NSDictionary alloc] initWithObjectsAndKeys:
|
_overrides = @{
|
||||||
@"text/css", @"css",
|
@"css": @"text/css"
|
||||||
nil];
|
};
|
||||||
}
|
}
|
||||||
NSString* mimeType = nil;
|
NSString* mimeType = nil;
|
||||||
extension = [extension lowercaseString];
|
extension = [extension lowercaseString];
|
||||||
|
|||||||
Reference in New Issue
Block a user