From 99a6f665b0f1884920c3ab2e0604258b65153fa3 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sat, 17 Sep 2016 21:03:53 +0100 Subject: [PATCH] Add explanetory comment --- app/Jobs/DownloadWebMention.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Jobs/DownloadWebMention.php b/app/Jobs/DownloadWebMention.php index 0b73384f..3ff505bc 100644 --- a/app/Jobs/DownloadWebMention.php +++ b/app/Jobs/DownloadWebMention.php @@ -37,6 +37,8 @@ class DownloadWebMention implements ShouldQueue public function handle(Client $guzzle) { $response = $guzzle->request('GET', $source); + //4XX and 5XX responses should get Guzzle to throw an exception, + //Laravel should catch and retry these automatically. if ($response->getStatusCode() == '200') { $filesystem = \Illuminate\FileSystem\FileSystem(); $filesystem->put(