* HttpWebRequest.cs: fix 1.1 only test.
svn path=/trunk/mcs/; revision=137046
+2009-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * HttpWebRequest.cs: fix 1.1 only test.
+
2009-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebConnectionStream.cs: when buffering the response, we have to set
throw new ProtocolViolationException ("Method is null.");
#if !NET_2_0
- bool send = (method == "PUT" || method == "POST");
+ bool send = !(method == "GET" || method == "CONNECT" || method == "HEAD" ||
+ method == "TRACE" || method == "DELETE");
if (send && contentLength < 0 && !sendChunked && !allowBuffering && KeepAlive)
throw new ProtocolViolationException ("Buffering is disabled, ContentLength is negative and SendChunked is disabled.");