Skip to content

Commit

Permalink
fix-archiver (#2348)
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic authored Dec 9, 2021
1 parent b403441 commit 147bece
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-archiver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: make archiver handle spaces protocol

The archiver can now handle the spaces protocol

https://github.com/cs3org/reva/pull/2348
5 changes: 4 additions & 1 deletion pkg/storage/utils/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ func (r *revaDownloader) Download(ctx context.Context, path string, dst io.Write

p, err := getDownloadProtocol(downResp.Protocols, "simple")
if err != nil {
return err
p, err = getDownloadProtocol(downResp.Protocols, "spaces")
if err != nil {
return err
}
}

httpReq, err := rhttp.NewRequest(ctx, http.MethodGet, p.DownloadEndpoint, nil)
Expand Down

0 comments on commit 147bece

Please sign in to comment.