hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r538088 - /jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/params/BasicHttpParams.java
Date Tue, 15 May 2007 08:17:12 GMT
Author: olegk
Date: Tue May 15 01:17:12 2007
New Revision: 538088

URL: http://svn.apache.org/viewvc?view=rev&rev=538088
Log:
Added check for defaults != self to avoid an infinite loop in BasicHttpParams#getParameter()

Modified:
    jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/params/BasicHttpParams.java

Modified: jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/params/BasicHttpParams.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/params/BasicHttpParams.java?view=diff&rev=538088&r1=538087&r2=538088
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/params/BasicHttpParams.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/params/BasicHttpParams.java
Tue May 15 01:17:12 2007
@@ -94,7 +94,7 @@
             return param;
         } else {
             // If not, see if defaults are available
-            if (this.defaults != null) {
+            if (this.defaults != null && this.defaults != this) {
                 // Return default parameter value
                 return this.defaults.getParameter(name);
             } else {



Mime
View raw message