1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +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:
inputReader = bytes.NewReader(input.([]byte))
case int:
inputReader = bytes.NewReader([]byte(""))
inputReader = nil
case *bytes.Buffer:
inputReader = bytes.NewReader(input.(*bytes.Buffer).Bytes())
case *RateLimitedReader: