You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that streaming upload does not work, most likely because the file is reset only once. This is related to #87, because the data is sent three times.
For example code similar to this snippet does not work, it's always stuck:
session = Session(auth=HttpNtlmAuth(username, password))
with open("blabla.txt") as file:
session.put(url="https://webdav-server/", data=file, timeout=10)
Yeah, this looks like a bug. I think we'd need to use some of the code in the newer versions of Requests for seeking back the body if possible.
I'm on holiday for the rest of the year which means that I won't be able to get to this until next year, but I am happy to review patches if anyone feels like tackling this.
It looks like this would be a pretty simple fix with rewind_body from 2.12.4. Are we alright requiring the latest version of requests being the minimum version for this module? If so, I can look into integrating it.
Activity
Lukasa commentedon Dec 16, 2016
Yeah, this looks like a bug. I think we'd need to use some of the code in the newer versions of Requests for seeking back the body if possible.
I'm on holiday for the rest of the year which means that I won't be able to get to this until next year, but I am happy to review patches if anyone feels like tackling this.
nateprewitt commentedon Dec 27, 2016
It looks like this would be a pretty simple fix with
rewind_bodyfrom 2.12.4. Are we alright requiring the latest version of requests being the minimum version for this module? If so, I can look into integrating it.ofek commentedon Jun 26, 2018
Has this been fixed?
kamikaze commentedon Jul 3, 2018
it seems that this project is abandonned