添加下载的扩展名类型用于下载文件
代码
location /client {
default_type application/octet-stream;
if ($request_filename ~* ^.*?/.(zip|apk|ipa)$)
{
add_header Content-Disposition: 'attachmet;';
}
}
添加下载的扩展名类型用于下载文件
代码
location /client {
default_type application/octet-stream;
if ($request_filename ~* ^.*?/.(zip|apk|ipa)$)
{
add_header Content-Disposition: 'attachmet;';
}
}