diff --git a/classes/tracker.class.php b/classes/tracker.class.php index f33981df..b506205e 100644 --- a/classes/tracker.class.php +++ b/classes/tracker.class.php @@ -21,6 +21,7 @@ public static function update_tracker($Action, $Updates, $ToIRC = false) { send_irc('PRIVMSG #tracker :'.$Get); } $Path = TRACKER_SECRET.$Get; + $Header = "GET /$Path HTTP/1.0\r\n\r\n"; $Return = ''; $Attempts = 0; @@ -29,7 +30,6 @@ public static function update_tracker($Action, $Updates, $ToIRC = false) { // Send update $File = fsockopen(TRACKER_HOST, TRACKER_PORT, $ErrorNum, $ErrorString); if ($File) { - $Header = 'GET /'.$Path.' HTTP/1.1\r\n'; if (fwrite($File, $Header) === false) { $Attempts++; $Err = "Failed to fwrite()";