Just noticed Director.php it was using this to check for HTTPS mode:
isset($_SERVER['HTTPS'])
Had to change it to:
isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on"
Because my IIS $_SERVER['HTTPS'] variable is equal to "off", which pass the issset test.