diff --git a/go.mod b/go.mod index 41c83d6645..bccbb892c5 100644 --- a/go.mod +++ b/go.mod @@ -229,7 +229,7 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace github.com/studio-b12/gowebdav => github.com/kobergj/gowebdav v0.0.0-20241212102826-849dbbfbe392 +replace github.com/studio-b12/gowebdav => github.com/kobergj/gowebdav v0.0.0-20241223142249-060874be3bb2 // exclude the v2 line of go-sqlite3 which was released accidentally and prevents pulling in newer versions of go-sqlite3 // see https://github.com/mattn/go-sqlite3/issues/965 for more details diff --git a/go.sum b/go.sum index 540220100a..d167557444 100644 --- a/go.sum +++ b/go.sum @@ -492,8 +492,8 @@ github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90 github.com/klauspost/cpuid/v2 v2.0.1/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM= github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= -github.com/kobergj/gowebdav v0.0.0-20241212102826-849dbbfbe392 h1:pdybugon6i4+YFQoF8m9vcBZBOczUksbjo4YgbSqc0E= -github.com/kobergj/gowebdav v0.0.0-20241212102826-849dbbfbe392/go.mod h1:bHA7t77X/QFExdeAnDzK6vKM34kEZAcE1OX4MfiwjkE= +github.com/kobergj/gowebdav v0.0.0-20241223142249-060874be3bb2 h1:jtEsQsh9Wpo622GUZwMmcV3fR4nw1PZWhob4z530nz0= +github.com/kobergj/gowebdav v0.0.0-20241223142249-060874be3bb2/go.mod h1:bHA7t77X/QFExdeAnDzK6vKM34kEZAcE1OX4MfiwjkE= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= diff --git a/pkg/sdk/common/net/webdav.go b/pkg/sdk/common/net/webdav.go index 17776d3438..845fcc5c3e 100644 --- a/pkg/sdk/common/net/webdav.go +++ b/pkg/sdk/common/net/webdav.go @@ -71,7 +71,7 @@ func (webdav *WebDAVClient) Read(file string) ([]byte, error) { func (webdav *WebDAVClient) Write(file string, data io.Reader, size int64) error { webdav.client.SetHeader("Upload-Length", strconv.FormatInt(size, 10)) - if err := webdav.client.WriteStream(file, data, 0700); err != nil { + if err := webdav.client.WriteStream(file, data, 0700, ""); err != nil { return fmt.Errorf("unable to write the data: %v", err) }