In System.Web/HttpResponseStream the ApplyFilter method does'nt flush the filter before closeing it. In 1.1.7 and .NET Framework the filter will be flushed at final flush.