Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43598dbd authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

change a request header value

parent ec3cb166
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -26,6 +26,7 @@
package com.owncloud.android.lib.common;
package com.owncloud.android.lib.common;


import android.net.Uri;
import android.net.Uri;
import android.util.Log;


import com.owncloud.android.lib.common.OwnCloudCredentialsFactory.OwnCloudAnonymousCredentials;
import com.owncloud.android.lib.common.OwnCloudCredentialsFactory.OwnCloudAnonymousCredentials;
import com.owncloud.android.lib.common.accounts.AccountUtils;
import com.owncloud.android.lib.common.accounts.AccountUtils;
@@ -250,6 +251,7 @@ public class OwnCloudClient extends HttpClient {
            return status;
            return status;


        } catch (IOException e) {
        } catch (IOException e) {
            Log.e("OwnCloudClient", e.getClass().getSimpleName()+" :"+e.toString());
            //Log_OC.d(TAG + " #" + mInstanceNumber, "Exception occurred", e);
            //Log_OC.d(TAG + " #" + mInstanceNumber, "Exception occurred", e);
            throw e;
            throw e;
        }
        }
+1 −1
Original line number Original line Diff line number Diff line
@@ -97,7 +97,7 @@ public class LightReadFolderRemoteOperation extends RemoteOperation {
            query = new PropFindMethod(client.getWebdavUri() + WebdavUtils.encodePath(mRemotePath),
            query = new PropFindMethod(client.getWebdavUri() + WebdavUtils.encodePath(mRemotePath),
                WebdavUtils.getMinimumPropSet(),    // PropFind Properties
                WebdavUtils.getMinimumPropSet(),    // PropFind Properties
                this.depth);
                this.depth);
            query.setRequestHeader("Accept-Encoding", "gzip,deflate");
            query.setRequestHeader("Accept-Encoding", "'gzip,deflate'");




            int status = client.executeMethod(query, "gzipUserAgent");
            int status = client.executeMethod(query, "gzipUserAgent");