--- class-http.php	2014-07-22 02:57:27.467845695 +0000
+++ new.php	2014-07-22 03:01:07.039237312 +0000
@@ -921,10 +921,10 @@

 		$strHeaders = strtoupper($r['method']) . ' ' . $requestPath . ' HTTP/' . $r['httpversion'] . "\r\n";

-		if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) )
-			$strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n";
-		else
+		if ( $arrURL['port'] == 80 || $arrURL['port'] == 443 )
 			$strHeaders .= 'Host: ' . $arrURL['host'] . "\r\n";
+		else
+			$strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n";

 		if ( isset($r['user-agent']) )
 			$strHeaders .= 'User-agent: ' . $r['user-agent'] . "\r\n";
