Author: gert
Date: 2008-01-12 04:52:20 -0500 (Sat, 12 Jan 2008)
New Revision: 92723
Modified:
trunk/mcs/class/System/System.Net/ChangeLog
trunk/mcs/class/System/System.Net/WebClient.cs
Log:
* WebClient.cs: Do not add trailing CRLF in UploadValuesCore. Fixes
standalone test for bug #351049.
Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2008-01-12 09:41:10 UTC (rev
92722)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2008-01-12 09:52:20 UTC (rev
92723)
@@ -1,3 +1,8 @@
+2008-01-12 Gert Driesen <[EMAIL PROTECTED]>
+
+ * WebClient.cs: Do not add trailing CRLF in UploadValuesCore. Fixes
+ standalone test for bug #351049.
+
2008-01-07 Sebastien Pouliot <[EMAIL PROTECTED]>
* CredentialCache.cs: Gendarme's AvoidToStringOnStringsRule in
Modified: trunk/mcs/class/System/System.Net/WebClient.cs
===================================================================
--- trunk/mcs/class/System/System.Net/WebClient.cs 2008-01-12 09:41:10 UTC
(rev 92722)
+++ trunk/mcs/class/System/System.Net/WebClient.cs 2008-01-12 09:52:20 UTC
(rev 92723)
@@ -735,18 +735,15 @@
if (length > 0)
tmpStream.SetLength (--length); //
remove trailing '&'
- tmpStream.WriteByte ((byte) '\r');
- tmpStream.WriteByte ((byte) '\n');
-
byte [] buf = tmpStream.GetBuffer ();
- rqStream.Write (buf, 0, length + 2);
+ rqStream.Write (buf, 0, length);
rqStream.Close ();
tmpStream.Close ();
WebResponse response = request.GetResponse ();
Stream st = ProcessResponse (response);
return ReadAll (st, (int)
response.ContentLength, userToken);
- } catch (ThreadInterruptedException){
+ } catch (ThreadInterruptedException) {
request.Abort ();
throw;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches