You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2016/10/15 19:11:09 UTC

svn commit: r1765101 - /httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java

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());