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

enable gzip compress for propfind

parent c27c4963
Pipeline #3362 passed with stage
in 2 minutes and 13 seconds
...@@ -25,6 +25,7 @@ import java.util.ListIterator; ...@@ -25,6 +25,7 @@ import java.util.ListIterator;
import io.eelo.drive.database.DbHelper; import io.eelo.drive.database.DbHelper;
import io.eelo.drive.models.SyncedFolder; import io.eelo.drive.models.SyncedFolder;
import static io.eelo.drive.utils.AppConstants.GZIP_ENABLED;
import static org.apache.jackrabbit.webdav.DavConstants.DEPTH_1; import static org.apache.jackrabbit.webdav.DavConstants.DEPTH_1;
/** /**
...@@ -78,7 +79,7 @@ public class ListFileRemoteOperation extends RemoteOperation { ...@@ -78,7 +79,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
} }
if(syncedFolder.getId() > 0){ if(syncedFolder.getId() > 0){
//Create ReadRemoteOperation //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); RemoteOperationResult result = operation.execute(ownCloudClient);
if(result.isSuccess() ){ if(result.isSuccess() ){
......
...@@ -30,4 +30,7 @@ public abstract class AppConstants { ...@@ -30,4 +30,7 @@ public abstract class AppConstants {
public final static String notificationChannelID ="3310"; public final static String notificationChannelID ="3310";
public final static String notificationChannelName="eDrive channel"; 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