Make WordPress Core

Changeset 5424


Ignore:
Timestamp:
05/10/2007 01:26:56 AM (18 years ago)
Author:
rob1n
Message:

Don't add port if port == 80 (default port). fixes #3993

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-snoopy.php

    r4075 r5424  
    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";
Note: See TracChangeset for help on using the changeset viewer.