summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/Exceptions/messages/messages.txt5
-rw-r--r--framework/Web/THttpResponse.php2
2 files changed, 5 insertions, 2 deletions
diff --git a/framework/Exceptions/messages/messages.txt b/framework/Exceptions/messages/messages.txt
index 377baf51..36a23701 100644
--- a/framework/Exceptions/messages/messages.txt
+++ b/framework/Exceptions/messages/messages.txt
@@ -459,4 +459,7 @@ ar_data_invalid = {0}.copyFrom() can only take an object or array as param
ar_save_invalid = The {0} instance cannot be saved because it is either deleted or in an unknown state.
ar_delete_invalid = The {0} instance cannot be deleted because it is either a new record or a record already deleted.
-datasource_dbconnection_invalid = TDataSourceConfig.DbConnection '{0}' is invalid. Please make sure it points to a valid application module. \ No newline at end of file
+datasource_dbconnection_invalid = TDataSourceConfig.DbConnection '{0}' is invalid. Please make sure it points to a valid application module.
+
+response_status_reason_missing = HTTP 1.1 need reason for extended status-codes
+response_status_reason_badchars = For HTTP 1.1 header, the token status-reason must not contain token CR or LF \ No newline at end of file
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index 26f7d25e..af751828 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -341,7 +341,7 @@ class THttpResponse extends TModule implements ITextWriter
}
}
$fn=basename($fileName);
- header("HTTP/1.1 {$this->_status} {$this->_reason}", true, $this->_status);
+ $this->sendHttpHeader();
if(is_array($headers))
{
foreach($headers as $h)