+2008-04-21 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
+
+ * HttpWebResponse.cs: do not check the disposed status for properties
+ and methods that return response data other than the stream itself.
+ Fixes bug #381223.
+
2008-04-16 Marek Habersack <mhabersack@novell.com>
* HttpWebRequest.cs: fix an off-by-one bug - the number of
// parameter = attribute "=" value
// 3.7.1. default is ISO-8859-1
get {
- CheckDisposed ();
string contentType = ContentType;
if (contentType == null)
return "ISO-8859-1";
public string ContentEncoding {
get {
- CheckDisposed ();
string h = webHeaders ["Content-Encoding"];
return h != null ? h : "";
}
public override long ContentLength {
get {
- CheckDisposed ();
if (contentLength != -1)
return contentLength;
public override string ContentType {
get {
- CheckDisposed ();
if (contentType == null)
contentType = webHeaders ["Content-Type"];
public CookieCollection Cookies {
get {
- CheckDisposed ();
-
if (cookieCollection == null)
cookieCollection = new CookieCollection ();
return cookieCollection;
}
set {
- CheckDisposed ();
cookieCollection = value;
}
}
public override WebHeaderCollection Headers {
get {
- CheckDisposed ();
return webHeaders;
}
}
public DateTime LastModified {
get {
- CheckDisposed ();
try {
string dtStr = webHeaders ["Last-Modified"];
return MonoHttpDate.Parse (dtStr);
public string Method {
get {
- CheckDisposed ();
return method;
}
}
public Version ProtocolVersion {
get {
- CheckDisposed ();
return version;
}
}
public override Uri ResponseUri {
get {
- CheckDisposed ();
return uri;
}
}
public string Server {
get {
- CheckDisposed ();
return webHeaders ["Server"];
}
}
public HttpStatusCode StatusCode {
get {
- CheckDisposed ();
return statusCode;
}
}
public string StatusDescription {
get {
- CheckDisposed ();
return statusDescription;
}
}
#if !NET_2_0
public override int GetHashCode ()
{
- CheckDisposed ();
return base.GetHashCode ();
}
#endif
public string GetResponseHeader (string headerName)
{
- CheckDisposed ();
string value = webHeaders [headerName];
return (value != null) ? value : "";
}