From a7d58587cbb4ddb51bf3c1db2897e6a96fe042d7 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Tue, 2 Jan 2007 10:25:33 +0000
Subject: - Patch #103164 by davea and RobRoy: made downloads work on IE6. 
 Send correct headers.

---
 modules/upload/upload.module | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'modules/upload/upload.module')

diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 6f8af3cde..95adadbba 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -265,12 +265,10 @@ function upload_file_download($file) {
     if (user_access('view uploaded files')) {
       $node = node_load($file->nid);
       if (node_access('view', $node)) {
-        $name = mime_header_encode($file->filename);
         $type = mime_header_encode($file->filemime);
         return array(
-          'Content-Type: '. $type .'; name='. $name,
+          'Content-Type: '. $type,
           'Content-Length: '. $file->filesize,
-          'Cache-Control: private'
         );
       }
       else {
-- 
cgit v1.2.3