mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Revert snoopy change that breaks with canonical feeds.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b7ca9bd521
commit
b3749dad16
@ -789,7 +789,7 @@ class Snoopy
|
|||||||
$headers .= "User-Agent: ".$this->agent."\r\n";
|
$headers .= "User-Agent: ".$this->agent."\r\n";
|
||||||
if(!empty($this->host) && !isset($this->rawheaders['Host'])) {
|
if(!empty($this->host) && !isset($this->rawheaders['Host'])) {
|
||||||
$headers .= "Host: ".$this->host;
|
$headers .= "Host: ".$this->host;
|
||||||
if(!empty($this->port))
|
if(!empty($this->port) && $this->port != 80)
|
||||||
$headers .= ":".$this->port;
|
$headers .= ":".$this->port;
|
||||||
$headers .= "\r\n";
|
$headers .= "\r\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user