Cyberduck Mountain Duck CLI

Changeset 46802


Ignore:
Timestamp:
Apr 15, 2019 8:05:26 PM (11 months ago)
Author:
dkocher
Message:

Disable request URI normalization by default.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property subgit:lock:15a5f42a98293a296448c2f7f3fccc3027e4914f deleted
    • Property subgit:lock:ac097090011d70069bd90f8d982cb352e22172d2 set to 2019-04-15T20:14:25.461
  • trunk/core/src/main/java/ch/cyberduck/core/http/HttpConnectionPoolBuilder.java

    r45914 r46802  
    230230            .setConnectionRequestTimeout(preferences.getInteger("http.manager.timeout"))
    231231            .setSocketTimeout(timeout)
     232            .setNormalizeUri(preferences.getBoolean("http.request.uri.normalize"))
    232233            .build();
    233234    }
  • trunk/core/src/main/java/ch/cyberduck/core/preferences/Preferences.java

    r46625 r46802  
    612612        this.setDefault("http.socket.buffer", String.valueOf(8192));
    613613        this.setDefault("http.credentials.charset", "ISO-8859-1");
     614        this.setDefault("http.request.uri.normalize", String.valueOf(false));
    614615
    615616        /*
  • trunk/s3/src/main/java/ch/cyberduck/core/s3/S3Session.java

    r46799 r46802  
    6666
    6767import org.apache.commons.lang3.StringUtils;
    68 import org.apache.http.client.config.RequestConfig;
    6968import org.apache.http.client.methods.HttpUriRequest;
    7069import org.apache.http.impl.client.HttpClientBuilder;
     
    200199    public RequestEntityRestStorageService connect(final Proxy proxy, final HostKeyCallback hostkey, final LoginCallback prompt) {
    201200        final HttpClientBuilder configuration = builder.build(proxy, this, prompt);
    202         configuration.setDefaultRequestConfig(
    203             RequestConfig.copy(builder.createRequestConfig(preferences.getInteger("connection.timeout.seconds") * 1000)).
    204                 setNormalizeUri(false).build());
    205201        // Only for AWS
    206202        if(S3Session.isAwsHostname(host.getHostname())) {
Note: See TracChangeset for help on using the changeset viewer.
swiss made software