Implement Range support for the Swift provider, with specs

This commit is contained in:
Greg Karékinian
2020-01-06 14:03:26 +01:00
parent 331fdbe1c7
commit 1824766a03
2 changed files with 11 additions and 1 deletions

View File

@@ -410,7 +410,9 @@ module RemoteStorage
def do_get_request(url, &block)
deal_with_unauthorized_requests do
RestClient.get(url, default_headers, &block)
headers = { }
headers["Range"] = server.env["HTTP_RANGE"] if server.env["HTTP_RANGE"]
RestClient.get(url, default_headers.merge(headers), &block)
end
end