Updated core, send data response
This commit is contained in:
parent
905e512bea
commit
8c5d7e58d9
1 changed files with 11 additions and 0 deletions
|
@ -262,6 +262,17 @@ class YellowCore
|
|||
}
|
||||
return $statusCode;
|
||||
}
|
||||
|
||||
// Send data response
|
||||
function sendData($statusCode, $rawData, $fileName, $cacheable)
|
||||
{
|
||||
@header($this->toolbox->getHttpStatusFormatted($statusCode));
|
||||
if(!$cacheable) @header("Cache-Control: no-cache, must-revalidate");
|
||||
@header("Content-Type: ".$this->toolbox->getMimeContentType($fileName));
|
||||
@header("Last-Modified: ".$this->toolbox->getHttpDateFormatted(time()));
|
||||
echo $rawData;
|
||||
return $statusCode;
|
||||
}
|
||||
|
||||
// Send status response
|
||||
function sendStatus($statusCode, $location = "")
|
||||
|
|
Loading…
Add table
Reference in a new issue