Commit bb6e5520 authored by Ad Schellevis's avatar Ad Schellevis

(Captiveportal, new) send Content-Type on template download, chrome still...

(Captiveportal, new) send Content-Type on template download, chrome still ignores the Content-Disposition tag
parent 65975750
......@@ -107,9 +107,10 @@ class ServiceController extends ApiControllerBase
$response = $result['payload'];
$this->response->setContentType('application/octet-stream', 'UTF-8');
$this->response->setHeader(
"Content-disposition:",
"attachment; filename=template_" . $templateFileId . ".zip"
'Content-Disposition:',
"Attachment; filename=\"template_" . $templateFileId . ".zip\""
);
$this->response->setHeader('Content-Type:', 'application/zip');
return base64_decode($response);
} else {
// return empty response on error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment