cristipufu / swiftclient-net

.NET Core async HTTP client for OpenStack Swift
MIT License
39 stars 19 forks source link

SwiftClientObject.DeleteObjects method fails with "method not allowed" error. #9

Open rfeezel opened 6 years ago

rfeezel commented 6 years ago

The DeleteObjects method specified "HttpMethod.Delete" when trying to make a "bulk-delete" request. According to the documentation this should be "HttpMethod.Post".

After changing to use POST the call fails with: https://hostname.com/v1/AUTH_photoapp?bulk-delete Error: System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host