Make WordPress Core

Ticket #3993: 3993.diff

File 3993.diff, 517 bytes (added by rob1n, 19 years ago)
  • wp-includes/class-snoopy.php

     
    796796                        $headers .= "User-Agent: ".$this->agent."\r\n";
    797797                if(!empty($this->host) && !isset($this->rawheaders['Host'])) {
    798798                        $headers .= "Host: ".$this->host;
    799                         if(!empty($this->port))
     799                        if(!empty($this->port) && $this->port != 80)
    800800                                $headers .= ":".$this->port;
    801801                        $headers .= "\r\n";
    802802                }