Commit 361ac7b2 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(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

(cherry picked from commit bb6e5520)
parent 216b12f2
......@@ -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