hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r230696 - in /jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl: DefaultHttpClientConnection.java DefaultHttpServerConnection.java
Date Sun, 07 Aug 2005 20:09:30 GMT
Author: olegk
Date: Sun Aug  7 13:09:27 2005
New Revision: 230696

URL: http://svn.apache.org/viewcvs?rev=230696&view=rev
Log:
Use parent's HttpParams as defaults for newly created HTTP messages

Modified:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpClientConnection.java
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpServerConnection.java

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpClientConnection.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpClientConnection.java?rev=230696&r1=230695&r2=230696&view=diff
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpClientConnection.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpClientConnection.java
Sun Aug  7 13:09:27 2005
@@ -299,7 +299,9 @@
         if (isWirelogEnabled()) {
             wirelog("<< " + s + "[\\r][\\n]");
         }
-        return this.responsefactory.newHttpResponse(statusline);
+        HttpMutableResponse response = this.responsefactory.newHttpResponse(statusline);
+        response.getParams().setDefaults(params);
+        return response;
     }
 
     protected void readResponseHeaders(

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpServerConnection.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpServerConnection.java?rev=230696&r1=230695&r2=230696&view=diff
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpServerConnection.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpServerConnection.java
Sun Aug  7 13:09:27 2005
@@ -117,7 +117,7 @@
             wirelog(">> " + line + "[\\r][\\n]");
         }
         HttpMutableRequest request = this.requestfactory.newHttpRequest(requestline);
-        request.setParams((HttpParams)params.clone());
+        request.getParams().setDefaults(params);
         return request;
     }
     



Mime
View raw message