From 403df1fd06c296225d0db6d62a3c2475d16f151f Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Wed, 9 Sep 2020 21:47:01 -0400 Subject: [PATCH] Added a call to discard http response where it was missed in previous fixes. Also added a missing import "io/ioutil". --- src/duplicacy_webdavstorage.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/duplicacy_webdavstorage.go b/src/duplicacy_webdavstorage.go index aba200c..6be1dd4 100644 --- a/src/duplicacy_webdavstorage.go +++ b/src/duplicacy_webdavstorage.go @@ -21,6 +21,7 @@ import ( "strings" "sync" "time" + "io/ioutil" ) type WebDAVStorage struct { @@ -234,6 +235,7 @@ func (storage *WebDAVStorage) getProperties(uri string, depth int, properties .. return nil, err } defer readCloser.Close() + defer io.Copy(ioutil.Discard, response.Body) object := WebDAVMultiStatus{} err = xml.NewDecoder(readCloser).Decode(&object)