文件下载设置二进制

This commit is contained in:
Devil 2021-07-20 23:47:55 +08:00
parent 7c29da88f5
commit 75dd49857e

View File

@ -205,7 +205,7 @@ class Qrcode
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Cache-Control: private',false);
header('Content-Type: application/force-download');
header('Content-Type: application/octet-stream;charset=utf-8');
header('Content-Disposition: attachment; filename="'.$filename.'"');
header('Content-Transfer-Encoding: binary');
header('Connection: close');