add response code: "HTTP/1.1 200 Ok" for private files #241

This commit is contained in:
vnmedeiros 2019-11-26 16:36:19 -03:00
parent d476e8c7f4
commit 204093e73b
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ class Private_Files {
$mime_type = \Tainacan\Media::get_instance()->get_mime_content_type($existing_file);
if ($item instanceof \Tainacan\Entities\Item && $item->can_read()) {
http_response_code(200); //header("HTTP/1.1 200 Ok");
//header('Content-Description: File Transfer');
//header('Content-Type: application/octet-stream');
header("Content-type: " . $mime_type);