mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 00:16:09 +00:00
Fix. If the path does not exist is not created when it hast to create more than 4 folders
This commit is contained in:
parent
2799b3e853
commit
c8a882761f
@ -247,6 +247,12 @@ public class OwnCloudClient extends HttpClient {
|
||||
if (location != null) {
|
||||
Log_OC.d(TAG + " #" + mInstanceNumber,
|
||||
"Location to redirect: " + location.getValue());
|
||||
|
||||
// Release the connection to avoid reach the max number of connections per host
|
||||
// due to it will be set a different url
|
||||
exhaustResponse(method.getResponseBodyAsStream());
|
||||
method.releaseConnection();
|
||||
|
||||
method.setURI(new URI(location.getValue(), true));
|
||||
Header destination = method.getRequestHeader("Destination");
|
||||
if (destination == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user