summaryrefslogtreecommitdiffstats
path: root/lib/Service/CurlService.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/CurlService.php')
-rw-r--r--lib/Service/CurlService.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Service/CurlService.php b/lib/Service/CurlService.php
index ef12a93e..cbea8819 100644
--- a/lib/Service/CurlService.php
+++ b/lib/Service/CurlService.php
@@ -230,6 +230,8 @@ class CurlService {
$this->fediverseService->authorized($request->getAddress());
$this->maxDownloadSizeReached = false;
+ $this->assignUserAgent($request);
+
$curl = $this->initRequest($request);
$this->initRequestPost($curl, $request);
@@ -292,6 +294,7 @@ class CurlService {
try {
$this->request($request);
+ } catch (RequestResultNotJsonException $e) {
} catch (Exception $e) {
$this->miscService->log(
'Cannot initiate AsyncWithToken ' . json_encode($token) . ' (' . get_class($e)