From 8b23e029e9d3f60e414314aca59196d8ceca138a Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Thu, 8 Sep 2016 10:12:27 -0400 Subject: [PATCH] retry post requests too --- lib/tools/Prefinery.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tools/Prefinery.class.php b/lib/tools/Prefinery.class.php index f84a560a..466971b5 100644 --- a/lib/tools/Prefinery.class.php +++ b/lib/tools/Prefinery.class.php @@ -143,7 +143,7 @@ class Prefinery { $apiKey = Config::get('prefinery_key'); return static::decodePrefineryResponse( - Curl::post(static::DOMAIN . static::PREFIX . $endpoint . '.json?api_key=' . $apiKey, $data, static::$curlOptions), + Curl::post(static::DOMAIN . static::PREFIX . $endpoint . '.json?api_key=' . $apiKey, $data, array_merge(static::$curlOptions, ['retry' => 3])), $allowEmptyResponse ); }