1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed downloads and patreon connections not working

This commit is contained in:
Jon Ziebell 2020-03-16 20:57:17 -04:00
parent 6ea48160e9
commit b422bd9522
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class patreon extends external_api {
echo '<html><head><title></title></head><body><script type="text/javascript">window.close();</script></body></html><!--';
$this->cora->set_headers([
$this->request->set_headers([
'Content-Type' => 'text/html'
], true);

View File

@ -983,7 +983,7 @@ class runtime extends cora\api {
} while ($chunk_end < $download_end);
fclose($output);
$this->cora->set_headers([
$this->request->set_headers([
'Content-Type' => 'text/csv',
'Content-Length' => $bytes,
'Content-Disposition' => 'attachment; filename="Beestat Export - ' . $ecobee_thermostat['identifier'] . '.csv"',