From 5b1285392c3ee7e6f48bcc808e08b409d619b166 Mon Sep 17 00:00:00 2001 From: Evgeny Ezhov Date: Wed, 27 Nov 2019 15:18:02 +0300 Subject: [PATCH] Changed HEAD to GET method for 'check' request due of not all servers support HEAD --- README.rst | 1 + webdav3/client.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index ac4bf1e..7efe3d4 100644 --- a/README.rst +++ b/README.rst @@ -32,6 +32,7 @@ Release Notes * Switch to use python sessions rather than requests by https://github.com/delrey1 * Stripping suburl from paths in extract_response_for_path by https://github.com/Skeen * Added Docker Web DAV for CI + * Changed HEAD to GET method for 'check' request due of not all servers support HEAD by request of https://github.com/danieleTrimarchi **Version 0.12 - 21.06.2019** * Added depth argument in copy method in client.py by https://github.com/JesperHakansson diff --git a/webdav3/client.py b/webdav3/client.py index b832baf..42a510c 100644 --- a/webdav3/client.py +++ b/webdav3/client.py @@ -184,7 +184,7 @@ class Client(object): 'move': "MOVE", 'mkdir': "MKCOL", 'clean': "DELETE", - 'check': "HEAD", + 'check': "GET", 'list': "PROPFIND", 'free': "PROPFIND", 'info': "PROPFIND",