Browse Source

sometimes it returns "request failed"

file_get_contents is dumb. I hope this isn't a permanent solution.
pull/39/head
Aaron Parecki 8 years ago
parent
commit
e09ee58d8b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/HTTPStream.php

+ 1
- 1
lib/HTTPStream.php View File

@ -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';
}

Loading…
Cancel
Save