Skip to content

Commit 7b7233b

Browse files
author
tailor
committed
[project @ Don't use Range header for ID page requests]
1 parent 1a9ca0a commit 7b7233b

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

Auth/Yadis/ParanoidHTTPFetcher.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ function get($url, $extra_headers = null)
127127
Auth_OpenID_USER_AGENT.' '.$curl_user_agent);
128128
curl_setopt($c, CURLOPT_TIMEOUT, $off);
129129
curl_setopt($c, CURLOPT_URL, $url);
130-
curl_setopt($c, CURLOPT_RANGE,
131-
"0-".(1024 * Auth_OpenID_FETCHER_MAX_RESPONSE_KB));
132130

133131
curl_exec($c);
134132

Auth/Yadis/PlainHTTPFetcher.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ function get($url, $extra_headers = null)
8383
"User-Agent: $user_agent",
8484
"Host: ".$parts['host'].
8585
($specify_port ? ":".$parts['port'] : ""),
86-
"Range: 0-".
87-
(1024*Auth_OpenID_FETCHER_MAX_RESPONSE_KB),
8886
"Port: ".$parts['port']);
8987

9088
$errno = 0;

0 commit comments

Comments
 (0)