You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/07/31 23:41:23 UTC
cvs commit: ws-axis/java/src/org/apache/axis/transport/http CommonsHTTPSender.java
dims 2005/07/31 14:41:23
Modified: java/src/org/apache/axis/transport/http
CommonsHTTPSender.java
Log:
Set the user agent in CommonsHTTPSender.
Revision Changes Path
1.40 +1 -1 ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java
Index: CommonsHTTPSender.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- CommonsHTTPSender.java 30 Jul 2005 01:48:09 -0000 1.39
+++ CommonsHTTPSender.java 31 Jul 2005 21:41:23 -0000 1.40
@@ -500,7 +500,7 @@
}
method.setRequestHeader(new Header(HTTPConstants.HEADER_SOAP_ACTION,
"\"" + action + "\""));
-
+ method.setRequestHeader(new Header(HTTPConstants.HEADER_USER_AGENT, Messages.getMessage("axisUserAgent")));
String userID = msgContext.getUsername();
String passwd = msgContext.getPassword();