summaryrefslogtreecommitdiffstats
path: root/Auth/Yadis/PlainHTTPFetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'Auth/Yadis/PlainHTTPFetcher.php')
-rw-r--r--Auth/Yadis/PlainHTTPFetcher.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Auth/Yadis/PlainHTTPFetcher.php b/Auth/Yadis/PlainHTTPFetcher.php
index c80e169..f61ab64 100644
--- a/Auth/Yadis/PlainHTTPFetcher.php
+++ b/Auth/Yadis/PlainHTTPFetcher.php
@@ -19,8 +19,6 @@
*/
require_once "Auth/Yadis/HTTPFetcher.php";
-define('Auth_OpenID_FETCHER_MAX_RESPONSE_KB', 1024);
-
/**
* This class implements a plain, hand-built socket-based fetcher
* which will be used in the event that CURL is unavailable.
@@ -81,6 +79,8 @@ class Auth_Yadis_PlainHTTPFetcher extends Auth_Yadis_HTTPFetcher {
"User-Agent: $user_agent",
"Host: ".$parts['host'].
($specify_port ? ":".$parts['port'] : ""),
+ "Range: 0-".
+ (1024*Auth_OpenID_FETCHER_MAX_RESPONSE_KB),
"Port: ".$parts['port']);
$errno = 0;