retry post requests too

This commit is contained in:
Alex Grintsvayg 2016-09-08 10:12:27 -04:00
parent 1808cab75a
commit 8b23e029e9

View file

@ -143,7 +143,7 @@ class Prefinery
{ {
$apiKey = Config::get('prefinery_key'); $apiKey = Config::get('prefinery_key');
return static::decodePrefineryResponse( 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 $allowEmptyResponse
); );
} }