* gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Add
default content-type for POST method.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117149
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-09-22 David Daney <ddaney@avtrex.com>
+
+ PR classpath/28661
+ * gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Add
+ default content-type for POST method.
+
2006-09-20 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java: Updated to latest.
final Credentials creds = (username == null) ? null :
new Credentials (username, password);
+ if ("POST".equals(method))
+ {
+ String contentType = requestHeaders.getValue("Content-Type");
+ if (null == contentType)
+ requestHeaders.addValue("Content-Type",
+ "application/x-www-form-urlencoded");
+ }
+
boolean retry;
do
{