Commit edfc19ac authored by vince-bourgmayer's avatar vince-bourgmayer

enable gzip compress for propfind

parent c27c4963
......@@ -25,6 +25,7 @@ import java.util.ListIterator;
import io.eelo.drive.database.DbHelper;
import io.eelo.drive.models.SyncedFolder;
import static io.eelo.drive.utils.AppConstants.GZIP_ENABLED;
import static org.apache.jackrabbit.webdav.DavConstants.DEPTH_1;
/**
......@@ -78,7 +79,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
}
if(syncedFolder.getId() > 0){
//Create ReadRemoteOperation
LightReadFolderRemoteOperation operation = new LightReadFolderRemoteOperation(syncedFolder.getRemoteFolder(), DEPTH_1, false);
LightReadFolderRemoteOperation operation = new LightReadFolderRemoteOperation(syncedFolder.getRemoteFolder(), DEPTH_1, GZIP_ENABLED);
RemoteOperationResult result = operation.execute(ownCloudClient);
if(result.isSuccess() ){
......
......@@ -30,4 +30,7 @@ public abstract class AppConstants {
public final static String notificationChannelID ="3310";
public final static String notificationChannelName="eDrive channel";
public final static boolean GZIP_ENABLED = true;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment