* HttpResponse.cs: SuppressContent does not throw and clears all the
buffered output. Fixes bug #67213.
svn path=/trunk/mcs/; revision=34583
+2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * HttpResponse.cs: SuppressContent does not throw and clears all the
+ buffered output. Fixes bug #67213.
+
2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.
}
set {
- if (_bHeadersSent)
- throw new HttpException ("Headers has been sent to the client");
-
_bSuppressContent = true;
}
}
if (!_bSuppressContent && Request.HttpMethod == "HEAD")
_bSuppressContent = true;
+ if (_bSuppressContent)
+ _Writer.Clear ();
+
if (!_bSuppressContent) {
_bClientDisconnected = false;
if (_bChunked) {