Prechádzať zdrojové kódy

2007-11-16 Marek Habersack <[email protected]>

	* HttpWebRequest.cs: when folding a request into a GET one, set
	content length to 0 and kill the buffers. Fixes bug #327314. Patch
	from Geoff Norton <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=89790
Marek Habersack 18 rokov pred
rodič
commit
fb23c6fb46

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

@@ -1,3 +1,9 @@
+2007-11-16  Marek Habersack  <[email protected]>
+
+	* HttpWebRequest.cs: when folding a request into a GET one, set
+	content length to 0 and kill the buffers. Fixes bug #327314. Patch
+	from Geoff Norton <[email protected]>, thanks!
+
 2007-11-13  Atsushi Enomoto  <[email protected]>
 
 	* WebRequest.cs : added missing ImpersonationLevel (NIE).

+ 3 - 0
mcs/class/System/System.Net/HttpWebRequest.cs

@@ -912,6 +912,9 @@ namespace System.Net
 					return false;
 				*/
 
+				contentLength = 0;
+				bodyBufferLength = 0;
+				bodyBuffer = null;
 				method = "GET";
 				uriString = webResponse.Headers ["Location"];
 				break;