cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1458773 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
Date Wed, 20 Mar 2013 11:42:05 GMT
Author: ningjiang
Date: Wed Mar 20 11:42:05 2013
New Revision: 1458773

URL: http://svn.apache.org/r1458773
Log:
CXF-4906 fixed the typo with thanks to Aki

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java?rev=1458773&r1=1458772&r2=1458773&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
Wed Mar 20 11:42:05 2013
@@ -321,7 +321,7 @@ public class Headers {
             }
         }
         // make sure we don't add more than one User-Agent header
-        if (connection.getRequestProperty("User-Agent") != null) {
+        if (connection.getRequestProperty("User-Agent") == null) {
             connection.addRequestProperty("User-Agent", Version.getCompleteVersionString());
         }
     }



Mime
View raw message