1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-20 10:13:20 +00:00

Fixed OneDrive 503 errors by sending GET requests with a nil body

This commit is contained in:
Gilbert Chen
2017-09-11 11:12:05 -04:00
parent 81b8550232
commit 6b2f50a1e8

View File

@@ -89,7 +89,7 @@ func (client *OneDriveClient) call(url string, method string, input interface{},
case []byte: case []byte:
inputReader = bytes.NewReader(input.([]byte)) inputReader = bytes.NewReader(input.([]byte))
case int: case int:
inputReader = bytes.NewReader([]byte("")) inputReader = nil
case *bytes.Buffer: case *bytes.Buffer:
inputReader = bytes.NewReader(input.(*bytes.Buffer).Bytes()) inputReader = bytes.NewReader(input.(*bytes.Buffer).Bytes())
case *RateLimitedReader: case *RateLimitedReader: