This commit is contained in:
Pierre-Olivier Latour
2014-04-02 08:34:19 -07:00
parent 0cdf441830
commit d68687af62
+5 -1
View File
@@ -88,7 +88,11 @@
return nil;
}
_uploadDirectory = [[path stringByStandardizingPath] copy];
GCDWebUploader* __unsafe_unretained uploader = self; // Avoid retain-cycles with self
#if __has_feature(objc_arc)
__unsafe_unretained GCDWebUploader* uploader = self;
#else
__block GCDWebUploader* server = self;
#endif
// Resource files
[self addGETHandlerForBasePath:@"/" directoryPath:[siteBundle resourcePath] indexFilename:nil cacheAge:3600 allowRangeRequests:NO];