Merge pull request #248 from dcrawshay/master

Support WebDAV GET request byte ranges
This commit is contained in:
Pierre-Olivier Latour
2016-01-03 18:23:28 -08:00
5 changed files with 5 additions and 0 deletions

View File

@@ -115,6 +115,11 @@ static inline BOOL _IsMacFinder(GCDWebServerRequest* request) {
[self.delegate davServer:self didDownloadFileAtPath:absolutePath];
});
}
if ([request hasByteRange]) {
return [GCDWebServerFileResponse responseWithFile:absolutePath byteRange:request.byteRange];
}
return [GCDWebServerFileResponse responseWithFile:absolutePath];
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.