Not sure if this is on purpose,

collecting $name here seems to be unnecessary here.

file: includes/file.inc

function file_get_content_headers($file) {
  $name = mime_header_encode($file->filename);
  $type = mime_header_encode($file->filemime);

  return array(
    'Content-Type' => $type,
    'Content-Length' => $file->filesize,
    'Cache-Control' => 'private',
  );
}

Sorry, if this is a dumb issue.

Comments

Samba B created an issue. See original summary.

astonvictor’s picture

astonvictor’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.