aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-09-09 19:35:03 -0400
committerjim-p <jim@pingle.org>2010-09-09 19:35:03 -0400
commitcce6a4c52546b7f5b781d2414398ccc26a110e94 (patch)
tree033fb1e0c11077ee2b062728c6c604afde02cb39 /config/openvpn-client-export
parent2b830b25bbd14d80a7b36747377fc407b8a81588 (diff)
downloadpfsense-packages-cce6a4c52546b7f5b781d2414398ccc26a110e94.tar.gz
pfsense-packages-cce6a4c52546b7f5b781d2414398ccc26a110e94.tar.bz2
pfsense-packages-cce6a4c52546b7f5b781d2414398ccc26a110e94.zip
Use these headers in all cases, since it makes even IE8 happier with HTTP, not just HTTPS.
Diffstat (limited to 'config/openvpn-client-export')
-rwxr-xr-xconfig/openvpn-client-export/vpn_openvpn_export.php18
1 files changed, 6 insertions, 12 deletions
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");