mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 11:44:45 -06:00
Added a call to discard http response where it was missed in previous fixes.
Also added a missing import "io/ioutil".
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
"io/ioutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WebDAVStorage struct {
|
type WebDAVStorage struct {
|
||||||
@@ -234,6 +235,7 @@ func (storage *WebDAVStorage) getProperties(uri string, depth int, properties ..
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
defer readCloser.Close()
|
defer readCloser.Close()
|
||||||
|
defer io.Copy(ioutil.Discard, response.Body)
|
||||||
|
|
||||||
object := WebDAVMultiStatus{}
|
object := WebDAVMultiStatus{}
|
||||||
err = xml.NewDecoder(readCloser).Decode(&object)
|
err = xml.NewDecoder(readCloser).Decode(&object)
|
||||||
|
|||||||
Reference in New Issue
Block a user