Skip to content

Comments

fix: Modify the status code detection range of the check function to 2xx#161

Open
zhangxinhui02 wants to merge 1 commit intoezhov-evgeny:developfrom
zhangxinhui02:fix/client-check-status-code
Open

fix: Modify the status code detection range of the check function to 2xx#161
zhangxinhui02 wants to merge 1 commit intoezhov-evgeny:developfrom
zhangxinhui02:fix/client-check-status-code

Conversation

@zhangxinhui02
Copy link

Hello! I recently used webdav-client-python-3 to connect to my WebDAV service provider, but I always encounter issues when creating new folders.

After tracing and debugging in the IDE, I found that the Client.check() function checks the server status before executing modifications. The Client.check() function considers a 200 status code as correct, but my WebDAV service provider returns a 207 status code, which should also be considered correct. In fact, all 2xx status codes should be considered correct.

I made some simple modifications to the code, enabling the Client.check() function to correctly handle all 2xx status codes.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant