From 66308371b320f94dc0ca562d7963b185157a8eb8 Mon Sep 17 00:00:00 2001 From: Lee Willis Date: Mon, 4 Mar 2013 19:50:29 +0000 Subject: [PATCH] Only extend the timeout, not reduce it --- github-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-api.php b/github-api.php index 27a3aeb..ab9153e 100644 --- a/github-api.php +++ b/github-api.php @@ -44,7 +44,7 @@ class github_api { * @return int The revised timeout setting */ function http_request_timeout ( $seconds ) { - return 25; + return $seconds < 25 ? 25 : $seconds; }