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

2007-05-07 Marek Habersack <[email protected]>

	* HttpResponseStream.cs: use BufferOutput

	* HttpResponse.cs: support Buffer, but use BufferOutput

2007-05-07  Marek Habersack  <[email protected]>

	* PagesSection.cs: buffering is on by default.

svn path=/trunk/mcs/; revision=76828
Marek Habersack 18 лет назад
Родитель
Сommit
c0dd53c288

+ 4 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog

@@ -1,3 +1,7 @@
+2007-05-07  Marek Habersack  <[email protected]>
+
+	* PagesSection.cs: buffering is on by default.
+
 2007-04-24  Marek Habersack  <[email protected]>
 
 	* WebConfigurationHost.cs: wrap MapPath calls in try/catch,

+ 1 - 1
mcs/class/System.Web/System.Web.Configuration_2.0/PagesSection.cs

@@ -71,7 +71,7 @@ namespace System.Web.Configuration
 								      PropertyHelper.PositiveTimeSpanValidator,
 								      ConfigurationPropertyOptions.None);
 			autoEventWireupProp = new ConfigurationProperty ("autoEventWireup", typeof(bool), true);
-			bufferProp = new ConfigurationProperty ("buffer", typeof(bool), false);
+			bufferProp = new ConfigurationProperty ("buffer", typeof(bool), true);
 			controlsProp = new ConfigurationProperty ("controls", typeof(TagPrefixCollection), null,
 								  null, null, ConfigurationPropertyOptions.None);
 			enableEventValidationProp = new ConfigurationProperty ("enableEventValidation", typeof (bool), true);

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

@@ -1,3 +1,9 @@
+2007-05-07  Marek Habersack  <[email protected]>
+
+	* HttpResponseStream.cs: use BufferOutput
+
+	* HttpResponse.cs: support Buffer, but use BufferOutput
+
 2007-05-03 Igor Zelmanovich <[email protected]>
 
 	* BrowserCapabilities.cs:

+ 2 - 2
mcs/class/System.Web/System.Web/HttpResponse.cs

@@ -598,7 +598,7 @@ namespace System.Web {
 			if (content_length >= 0){
 				write_headers.Add (new KnownResponseHeader (HttpWorkerRequest.HeaderContentLength,
 								      content_length.ToString (CultureInfo.InvariantCulture)));
-			} else if (Buffer){
+			} else if (BufferOutput){
 				if (final_flush){
 					//
 					// If we are buffering and this is the last flush, not a middle-flush,
@@ -764,7 +764,7 @@ namespace System.Web {
 		public void Redirect (string url, bool endResponse)
 		{
 			if (headers_sent)
-				throw new HttpException ("header have been already sent");
+				throw new HttpException ("Headers have already been sent");
 
 #if TARGET_J2EE
 			// In J2EE portal we need to handle Redirect at the processAction phase

+ 1 - 1
mcs/class/System.Web/System.Web/HttpResponseStream.cs

@@ -458,7 +458,7 @@ namespace System.Web {
 
 	        public override void Write (byte [] buffer, int offset, int count)
 		{
-			bool buffering = response.Buffer;
+			bool buffering = response.BufferOutput;
 
 			if (buffering) {
 				// It does not matter whether we're in ApplyFilter or not