mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-04-24 00:00:04 +08:00
Support WebDAV GET request byte ranges
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user