Merge branch 'release/3.3' into release/3.4

This commit is contained in:
Dylan K. Taylor 2018-11-04 22:15:46 +00:00
commit 0543c17849
2 changed files with 5 additions and 13 deletions

View File

@ -44,10 +44,6 @@ class FileWriteTask extends AsyncTask{
} }
public function onRun(){ public function onRun(){
try{ file_put_contents($this->path, $this->contents, $this->flags);
file_put_contents($this->path, $this->contents, $this->flags);
}catch(\Throwable $e){
}
} }
} }

View File

@ -147,13 +147,9 @@ class SendUsageTask extends AsyncTask{
} }
public function onRun(){ public function onRun(){
try{ Internet::postURL($this->endpoint, $this->data, 5, [
Internet::postURL($this->endpoint, $this->data, 5, [ "Content-Type: application/json",
"Content-Type: application/json", "Content-Length: " . strlen($this->data)
"Content-Length: " . strlen($this->data) ]);
]);
}catch(\Throwable $e){
}
} }
} }