"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
rest: don't duplicate headers on redirect now go1.8 does it
Nick Craig-Wooddc5b7dc102be
diff --git a/rest/rest.go b/rest/rest.goindex d3105b6b3..cdf115309 100644--- a/rest/rest.go+++ b/rest/rest.go@@ -95,6 +95,8 @@ func DecodeJSON(resp *http.Response, result interface{}) (err error) {// ClientWithHeaderReset makes a new http client which resets the// headers passed in on redirect+//+// FIXME This is now unecessary with go1.8func ClientWithHeaderReset(c *http.Client, headers map[string]string) *http.Client {if len(headers) == 0 {return c@@ -107,7 +109,7 @@ func ClientWithHeaderReset(c *http.Client, headers map[string]string) *http.Clie// Reset the headers in the new requestfor k, v := range headers {if v != "" {- req.Header.Add(k, v)+ req.Header.Set(k, v)}}return nil