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:
parent
6ea48160e9
commit
b422bd9522
@ -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);
|
||||
|
||||
|
@ -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"',
|
||||
|
Loading…
x
Reference in New Issue
Block a user