From e09ee58d8b1623db83f0ea63553dbebcdf560a01 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 27 Feb 2016 14:53:08 -0800 Subject: [PATCH] sometimes it returns "request failed" file_get_contents is dumb. I hope this isn't a permanent solution. --- lib/HTTPStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/HTTPStream.php b/lib/HTTPStream.php index 23363c5..95bc3e2 100644 --- a/lib/HTTPStream.php +++ b/lib/HTTPStream.php @@ -48,7 +48,7 @@ class HTTPStream { $description = str_replace('php_network_getaddresses: ', '', $description); } - if(preg_match('/timed out/', $description)) { + if(preg_match('/timed out|request failed/', $description)) { $code = 'timeout'; }