Browse Source

2006-10-04 Gonzalo Paniagua Javier <[email protected]>

	* HttpWebRequest.cs: internally allow buffer if it's not a known
	GET-only method instead of enabling that only for POST/PUT. Fixes bug
	#79595.


svn path=/trunk/mcs/; revision=66272
Gonzalo Paniagua Javier 19 years ago
parent
commit
a42391d3c6

+ 6 - 0
mcs/class/System/System.Net/ChangeLog

@@ -1,3 +1,9 @@
+2006-10-04 Gonzalo Paniagua Javier <[email protected]>
+
+	* HttpWebRequest.cs: internally allow buffer if it's not a known
+	GET-only method instead of enabling that only for POST/PUT. Fixes bug
+	#79595.
+
 2006-09-28 Andrew Skiba <[email protected]>
 
 	* WebConnection.cs: TARGET_JVM

+ 1 - 1
mcs/class/System/System.Net/HttpWebRequest.cs

@@ -170,7 +170,7 @@ namespace System.Net
 		
 		internal bool InternalAllowBuffering {
 			get {
-				return (allowBuffering && (method == "PUT" || method == "POST"));
+				return (allowBuffering && (method != "HEAD" && method != "GET"));
 			}
 		}