hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [04/50] httpcomponents-core git commit: HTTPCORE-435: ConnectionConfig#copy() does not copy every field Contributed by Clement Pellerin <clement_pellerin at ibi.com>
Date Tue, 09 May 2017 20:01:30 GMT
HTTPCORE-435: ConnectionConfig#copy() does not copy every field
Contributed by Clement Pellerin <clement_pellerin at ibi.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1765101
13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/58c75adc
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/58c75adc
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/58c75adc

Branch: refs/heads/4.4.x
Commit: 58c75adc13802cda12177a465acc07c2d73a9f18
Parents: 441c9c4
Author: Oleg Kalnichevski <olegk@apache.org>
Authored: Sat Oct 15 19:11:09 2016 +0000
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Sat Oct 15 19:11:09 2016 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/http/config/ConnectionConfig.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/58c75adc/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java
----------------------------------------------------------------------
diff --git a/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java b/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java
index f16b585..761ecfe 100644
--- a/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java
+++ b/httpcore/src/main/java/org/apache/http/config/ConnectionConfig.java
@@ -117,7 +117,9 @@ public class ConnectionConfig implements Cloneable {
     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