mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
send map & api-key headers with steamworks too (untested)
This commit is contained in:
parent
3e29099ab8
commit
2efbc4a653
@ -172,6 +172,8 @@ void RetrieveZones(const char[] mapname)
|
||||
if (!(request = SteamWorks_CreateHTTPRequest(k_EHTTPMethodGET, apiurl))
|
||||
|| (apikey[0] && !SteamWorks_SetHTTPRequestHeaderValue(request, "api-key", apikey))
|
||||
|| !SteamWorks_SetHTTPRequestHeaderValue(request, "accept", "application/json")
|
||||
|| !(!apikey[0] || SteamWorks_SetHTTPRequestHeaderValue(request, "api-key", apikey))
|
||||
|| !SteamWorks_SetHTTPRequestHeaderValue(request, "map", mapname)
|
||||
|| !SteamWorks_SetHTTPRequestContextValue(request, pack)
|
||||
|| !SteamWorks_SetHTTPRequestAbsoluteTimeoutMS(request, 4000)
|
||||
//|| !SteamWorks_SetHTTPRequestRequiresVerifiedCertificate(request, true)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user