hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r611784 - /httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/BenchmarkWorker.java
Date Mon, 14 Jan 2008 12:27:28 GMT
Author: olegk
Date: Mon Jan 14 04:27:27 2008
New Revision: 611784

URL: http://svn.apache.org/viewvc?rev=611784&view=rev
Log:
Minor tweak

Modified:
    httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/BenchmarkWorker.java

Modified: httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/BenchmarkWorker.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/BenchmarkWorker.java?rev=611784&r1=611783&r2=611784&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/BenchmarkWorker.java
(original)
+++ httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/benchmark/BenchmarkWorker.java
Mon Jan 14 04:27:27 2008
@@ -33,13 +33,13 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.Socket;
-import java.util.Iterator;
 
 import javax.net.SocketFactory;
 import javax.net.ssl.SSLSocketFactory;
 
 import org.apache.http.ConnectionReuseStrategy;
 import org.apache.http.Header;
+import org.apache.http.HeaderIterator;
 import org.apache.http.HttpEntity;
 import org.apache.http.HttpException;
 import org.apache.http.HttpHost;
@@ -250,8 +250,8 @@
     }
 
     private static void resetHeader(final HttpRequest request) {
-        for (Iterator it = request.headerIterator(); it.hasNext();) {
-            Header header = (Header) it.next();
+        for (HeaderIterator it = request.headerIterator(); it.hasNext();) {
+            Header header = it.nextHeader();
             if (!(header instanceof DefaultHeader)) {
                 it.remove();
             }



Mime
View raw message