mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-05-31 00:00:10 +08:00
Merge pull request #248 from dcrawshay/master
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];
|
[self.delegate davServer:self didDownloadFileAtPath:absolutePath];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ([request hasByteRange]) {
|
||||||
|
return [GCDWebServerFileResponse responseWithFile:absolutePath byteRange:request.byteRange];
|
||||||
|
}
|
||||||
|
|
||||||
return [GCDWebServerFileResponse responseWithFile:absolutePath];
|
return [GCDWebServerFileResponse responseWithFile:absolutePath];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user