Add explanetory comment
This commit is contained in:
parent
f9fc24dd04
commit
99a6f665b0
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue