hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1765101 - /httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java
Date Sat, 15 Oct 2016 19:11:09 GMT
Author: olegk
Date: Sat Oct 15 19:11:09 2016
New Revision: 1765101

URL: http://svn.apache.org/viewvc?rev=1765101&view=rev
Log:
HTTPCORE-435: ConnectionConfig#copy() does not copy every field
Contributed by Clement Pellerin <clement_pellerin at ibi.com>

Modified:
    httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java

Modified: httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java?rev=1765101&r1=1765100&r2=1765101&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java
(original)
+++ httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java
Sat Oct 15 19:11:09 2016
@@ -117,7 +117,9 @@ public class ConnectionConfig implements
     public static ConnectionConfig.Builder copy(final ConnectionConfig config) {
         Args.notNull(config, "Connection config");
         return new Builder()
+            .setBufferSize(config.getBufferSize())
             .setCharset(config.getCharset())
+            .setFragmentSizeHint(config.getFragmentSizeHint())
             .setMalformedInputAction(config.getMalformedInputAction())
             .setUnmappableInputAction(config.getUnmappableInputAction())
             .setMessageConstraints(config.getMessageConstraints());



Mime
View raw message