Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code 400, message Bad request syntax ('0') on my Server #52

Open
Wissperwind opened this issue Feb 19, 2021 · 1 comment
Open

code 400, message Bad request syntax ('0') on my Server #52

Wissperwind opened this issue Feb 19, 2021 · 1 comment

Comments

@Wissperwind
Copy link

Hi,
I use https://github.com/ezhov-evgeny/webdav-client-python-3 as client

I upload files with the client.
That results in the following console log:

[19/Feb/2021 14:27:24] "HEAD /auth/webdav/24/input/ HTTP/1.1" 200 0
[19/Feb/2021 14:27:26] "PUT /auth/webdav/24/input/Freilauf.CATPart HTTP/1.1" 201 0
[19/Feb/2021 14:27:26] code 400, message Bad request syntax ('0')
[19/Feb/2021 14:27:26] "0" 400 -

the upload works perfectly. But what does the Bad request message mean?
Does the clients is sending a bad request in not the corryt syntax, or are the requests correct and the problem is, that djangodav is just expecting something different?

@Wissperwind
Copy link
Author

I think this happens if I upload 0KB files. I think if a file is empty this should not result in a bad request console print in my opinion.

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

No branches or pull requests

1 participant