You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2016/02/10 12:15:56 UTC

cxf git commit: [CXF-6772] Reporting browserType property as HTTP User-Agent header

Repository: cxf
Updated Branches:
  refs/heads/master 71dc7cbdc -> cf492753c


[CXF-6772] Reporting browserType property as HTTP User-Agent header


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/cf492753
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/cf492753
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/cf492753

Branch: refs/heads/master
Commit: cf492753cd899f1ac7056e3523270db6714d4420
Parents: 71dc7cb
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Wed Feb 10 11:15:42 2016 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Wed Feb 10 11:15:42 2016 +0000

----------------------------------------------------------------------
 .../http/src/main/java/org/apache/cxf/transport/http/Headers.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/cf492753/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
index 65adab9..03a3736 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
@@ -167,7 +167,7 @@ public class Headers {
                     createMutableList(policy.getCookie()));
         }
         if (policy.isSetBrowserType()) {
-            headers.put("BrowserType",
+            headers.put("User-Agent",
                     createMutableList(policy.getBrowserType()));
         }
         if (policy.isSetReferer()) {