Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
eDrive
Commits
4c1904ec
Commit
4c1904ec
authored
Feb 18, 2019
by
vince-bourgmayer
Browse files
enable gzip compress for propfind
parent
b5416a46
Pipeline
#3721
passed with stage
in 2 minutes and 20 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/io/eelo/drive/operations/ListFileRemoteOperation.java
View file @
4c1904ec
...
...
@@ -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
()
){
...
...
app/src/main/java/io/eelo/drive/utils/AppConstants.java
View file @
4c1904ec
...
...
@@ -28,23 +28,6 @@ public abstract class AppConstants {
public
static
final
String
[]
MEDIA_SYNCABLE_CATEGORIES
=
new
String
[]{
"Images"
,
"Movies"
,
"Music"
,
"Ringtones"
,
"Documents"
,
"Podcasts"
};
public
static
final
String
[]
SETTINGS_SYNCABLE_CATEGORIES
=
new
String
[]
{
"Rom settings"
};
/*public static final int FLAG_SCANREMOTE = 1; // 0001 scan remote & settings & inactive
public static final int FLAG_SCANLOCAL = 2; // 0010 scan local & settings & inactive
//0x3 = SCANBOTH & Settings & inactive
public static final int FLAG_MEDIA_SYNCABLE = 4; // 0100
//0x5 = SCANREMOTE & Media & inactive
//0x6 = SCANLOCAL & Media & inactive
//0x7 = SCANBOTH & Media & inactive
public static final int FLAG_ACTIVE = 8; // 1000
//0x9 = 1001 : scan remote, settings and active
//0xA = 1010: active, settings and scan local
//0xB = 1011: active, scan both & settings
//0xC = 1100 : active, media, noscan
//0xD = 1101: active, media, scanRemote
//0xE = 1110: active, media, scanLocal
//0xF = 1111: active, media, scanBoth */
public
static
final
boolean
GZIP_ENABLED
=
true
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment