|
@@ 139-144 (lines=6) @@
|
| 136 |
|
$this->headers = $parser->headers; |
| 137 |
|
$this->body = $parser->body; |
| 138 |
|
$this->status_code = $parser->status_code; |
| 139 |
|
if ((in_array($this->status_code, array(300, 301, 302, 303, 307)) || $this->status_code > 307 && $this->status_code < 400) && isset($this->headers['location']) && $this->redirects < $redirects) |
| 140 |
|
{ |
| 141 |
|
$this->redirects++; |
| 142 |
|
$location = SimplePie_Misc::absolutize_url($this->headers['location'], $url); |
| 143 |
|
return $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen); |
| 144 |
|
} |
| 145 |
|
} |
| 146 |
|
} |
| 147 |
|
} |
|
@@ 221-226 (lines=6) @@
|
| 218 |
|
$this->headers = $parser->headers; |
| 219 |
|
$this->body = $parser->body; |
| 220 |
|
$this->status_code = $parser->status_code; |
| 221 |
|
if ((in_array($this->status_code, array(300, 301, 302, 303, 307)) || $this->status_code > 307 && $this->status_code < 400) && isset($this->headers['location']) && $this->redirects < $redirects) |
| 222 |
|
{ |
| 223 |
|
$this->redirects++; |
| 224 |
|
$location = SimplePie_Misc::absolutize_url($this->headers['location'], $url); |
| 225 |
|
return $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen); |
| 226 |
|
} |
| 227 |
|
if (isset($this->headers['content-encoding'])) |
| 228 |
|
{ |
| 229 |
|
// Hey, we act dumb elsewhere, so let's do that here too |