lib/httpx/plugins/webdav.rb in httpx-0.22.1 vs lib/httpx/plugins/webdav.rb in httpx-0.22.2
- old
+ new
@@ -30,9 +30,11 @@
"<D:locktype><D:write/></D:locktype>" \
"<D:owner>null</D:owner>" \
"</D:lockinfo>"
response = request(:lock, path, headers: headers, xml: xml)
+ return response unless response.is_a?(Response)
+
return response unless blk && response.status == 200
lock_token = response.headers["lock-token"]
begin