From c1d57c05a25eb2dea80449570a5b9e1f30c5937a Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 31 May 2001 04:45:51 +0000 Subject: [PATCH] fix default mime type --- phpgwapi/inc/class.browser.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phpgwapi/inc/class.browser.inc.php b/phpgwapi/inc/class.browser.inc.php index 1432454a00..23a5f98332 100644 --- a/phpgwapi/inc/class.browser.inc.php +++ b/phpgwapi/inc/class.browser.inc.php @@ -257,17 +257,17 @@ } // Echo content headers for file downloads - function content_header($fn="",$mime="application/octetstream",$length="",$nocache=True) + function content_header($fn='',$mime='application/octet-stream',$length='',$nocache=True) { if ($fn) { - if ($this->get_agent() == "IE") // && browser_get_version() == "5.5") + if ($this->get_agent() == 'IE') // && browser_get_version() == "5.5") { - $attachment = ""; + $attachment = ''; } - else + else { - $attachment = " attachment;"; + $attachment = ' attachment;'; } // Show this for all