gowebdav
gowebdav copied to clipboard
Provide content length for the put method
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.
Thanks! Could you add / update our tests?
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.
Unit test is added, thank you for your reminding