Просмотр исходного кода

2004-07-09 Gonzalo Paniagua Javier <[email protected]>

	* HttpWebRequest.cs: removed bogus Monitor.Exit.
	* WebConnection.cs: use Address instead of RequestUri when checking for
	the scheme in order to select the stream type. Fixes bug #61218.

svn path=/trunk/mcs/; revision=30900
Gonzalo Paniagua Javier 21 лет назад
Родитель
Сommit
2f46599cce

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

@@ -1,3 +1,9 @@
+2004-07-09 Gonzalo Paniagua Javier <[email protected]>
+
+	* HttpWebRequest.cs: removed bogus Monitor.Exit.
+	* WebConnection.cs: use Address instead of RequestUri when checking for
+	the scheme in order to select the stream type. Fixes bug #61218.
+
 2004-06-06  Gonzalo Paniagua Javier <[email protected]>
 
 	* ChunkStream.cs: added ChunkLeft property.

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

@@ -584,7 +584,6 @@ namespace System.Net
 				initialMethod = method;
 				if (haveRequest) {
 					if (writeStream != null) {
-						Monitor.Exit (this);
 						asyncWrite.SetCompleted (true, writeStream);
 						asyncWrite.DoCallback ();
 						return asyncWrite;

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

@@ -131,7 +131,7 @@ namespace System.Net
 		{
 			try {
 				NetworkStream serverStream = new NetworkStream (socket, false);
-				if (request.RequestUri.Scheme == Uri.UriSchemeHttps) {
+				if (request.Address.Scheme == Uri.UriSchemeHttps) {
 					ssl = true;
 					if (!sslCheck) {
 						lock (typeof (WebConnection)) {