* WebConnection.cs: HEAD response does not have a body even if the
response is an error. Fixes buf #535102.
svn path=/trunk/mcs/; revision=140923
+2009-08-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * WebConnection.cs: HEAD response does not have a body even if the
+ response is an error. Fixes buf #535102.
+
2009-08-17 Geoff Norton <gnorton@novell.com>
* NtlmClient.cs: Mono.Http does not exist on monotouch
data.stream = stream;
- if (!ExpectContent (data.StatusCode))
+ if (!ExpectContent (data.StatusCode) || data.request.Method == "HEAD")
stream.ForceCompletion ();
data.request.SetResponseData (data);