I am implementing a simple static webserver using GCDWebserver
, problem is my jpeg file names do not have a file extension.
This is confusing my clients I see there is a kGCDWebServerDefaultMimeType
in GCDWebServerPrivate.h
#define kGCDWebServerDefaultMimeType @"application/octet-stream"
What would be the simplest way for me to change this to @"image/jpeg" without changing the library header ? I am using Cocoapods pod "GCDWebServer", "~> 3.0"
Currently the only code I have is
[_webServer addGETHandlerForBasePath:@"/" directoryPath:mediaRoot indexFilename:nil cacheAge:3600 allowRangeRequests:YES];
[_webServer startWithPort:8080 bonjourName:nil];