summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/THttpResponse.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index f9520c0f..75ddca7d 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,6 +1,7 @@
Version 3.0.7
===================
BUG: Ticket#481 - Unable to cancel navigation when handling OnSideBarButtonClickEvent (Qiang)
+BUG: typo in THttpResponse.writeFile() about sending headers (Qiang)
Version 3.0.6 December 4, 2006
==============================
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index a7a949f0..2dd70682 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -261,7 +261,7 @@ class THttpResponse extends TModule implements ITextWriter
{
header('Pragma: public');
header('Expires: 0');
- header('Cache-Component: must-revalidate, post-check=0, pre-check=0');
+ header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
}
header("Content-type: $mimeType");
header('Content-Length: '.($content===null?filesize($fileName):strlen($content)));