Explorar o código

Include Version info in request to API.

Adjokip %!s(int64=9) %!d(string=hai) anos
pai
achega
611554eaa2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      OGP/ogp_agent.pl

+ 1 - 1
OGP/ogp_agent.pl

@@ -1870,7 +1870,7 @@ sub fetch_steam_version
 	
 	logger "Getting latest version info for AppId $appId";
 	
-	$ua->agent('OGP Windows Agent');
+	$ua->agent('OGP Windows Agent v/' . AGENT_VERSION);
 	$ua->timeout(10);
 	
 	my $response = $ua->get("http://opengamepanel.org/supported_games/api.php?appid=$appId&action=getBuildId");