From cce6a4c52546b7f5b781d2414398ccc26a110e94 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 9 Sep 2010 19:35:03 -0400 Subject: Use these headers in all cases, since it makes even IE8 happier with HTTP, not just HTTPS. --- config/openvpn-client-export/vpn_openvpn_export.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'config/openvpn-client-export') diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php index d876b519..bc083e17 100755 --- a/config/openvpn-client-export/vpn_openvpn_export.php +++ b/config/openvpn-client-export/vpn_openvpn_export.php @@ -168,10 +168,8 @@ if($act == "conf" || $act == "confall") { $exp_size = strlen($exp_data); } - if (isset($_SERVER['HTTPS'])) { - header('Pragma: '); - header('Cache-Control: '); - } + header('Pragma: '); + header('Cache-Control: '); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename={$exp_name}"); header("Content-Length: $exp_size"); @@ -246,10 +244,8 @@ if($act == "visc") { if (!$error) { $exp_size = filesize($exp_path); - if (isset($_SERVER['HTTPS'])) { - header('Pragma: '); - header('Cache-Control: '); - } + header('Pragma: '); + header('Cache-Control: '); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename={$exp_name}"); header("Content-Length: $exp_size"); @@ -320,10 +316,8 @@ if($act == "inst") { if (!$error) { $exp_size = filesize($exp_path); - if (isset($_SERVER['HTTPS'])) { - header('Pragma: '); - header('Cache-Control: '); - } + header('Pragma: '); + header('Cache-Control: '); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename={$exp_name}"); header("Content-Length: $exp_size"); -- cgit v1.2.3