Explorar o código

2004-12-09 Lluis Sanchez Gual <[email protected]>

	* TypeStubManager.cs: Removed redundat hastable access.
	* SoapHttpClientProtocol.cs: Accept responses with ContentLength==0.
	This fixes bug #70310.


svn path=/trunk/mcs/; revision=37476
Lluis Sanchez %!s(int64=21) %!d(string=hai) anos
pai
achega
de5a70b4dc

+ 6 - 0
mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog

@@ -1,3 +1,9 @@
+2004-12-09  Lluis Sanchez Gual <[email protected]>
+
+	* TypeStubManager.cs: Removed redundat hastable access.
+	* SoapHttpClientProtocol.cs: Accept responses with ContentLength==0.
+	This fixes bug #70310.
+
 2004-12-03 Gonzalo Paniagua Javier <[email protected]>
 
 	* SoapHttpClientProtocol.cs: dispose the StreamReader that wraps the

+ 3 - 0
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs

@@ -244,6 +244,9 @@ namespace System.Web.Services.Protocols
 					msg = String.Format (msg, (int) code, code);
 					throw new WebException (msg, null, WebExceptionStatus.ProtocolError, http_response);
 				}
+				if (response.ContentLength == 0 && (code == HttpStatusCode.Accepted || code == HttpStatusCode.OK)) {
+					return new object[0];
+				}
 			}
 			
 			//

+ 0 - 5
mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs

@@ -394,11 +394,6 @@ namespace System.Web.Services.Protocols {
 				if (tm != null)
 					return tm;
 
-				tm = (LogicalTypeInfo) type_to_manager [t];
-
-				if (tm != null)
-					return tm;
-					
 				tm = new LogicalTypeInfo (t);
 				type_to_manager [t] = tm;