Add explanetory comment

This commit is contained in:
Jonny Barnes 2016-09-17 21:03:53 +01:00
parent f9fc24dd04
commit 99a6f665b0

View file

@ -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(