add response code: "HTTP/1.1 200 Ok" for private files #241
This commit is contained in:
parent
d476e8c7f4
commit
204093e73b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue