gowebdav icon indicating copy to clipboard operation
gowebdav copied to clipboard

Provide content length for the put method

Open murasakiakari opened this issue 1 year ago • 3 comments

Since there is some webdav server implementation (such as nextcloud) give unexpected behavior when there is no content length is set in the put request. Therefore, I introduce the contentLength parameter to the *Client.put() method to provide the correct content length of the body to the server to prevent the behavior mention above.

murasakiakari avatar Oct 29 '23 14:10 murasakiakari

Thanks! Could you add / update our tests?

chripo avatar Oct 29 '23 15:10 chripo

Thanks for your message. I has some idea on how to make a unit after taking a rest, I will update the unit test asap.

murasakiakari avatar Oct 29 '23 18:10 murasakiakari

Unit test is added, thank you for your reminding

murasakiakari avatar Oct 31 '23 15:10 murasakiakari