Skip to content

Commit

Permalink
fix: autorender.p2sr.org redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Sep 23, 2024
1 parent aeaf0d5 commit 055f492
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Features/AutoSubmit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ void retrieveMtriggers(int rank, std::string map_name) {
curl = curl_easy_init();
if (curl) {
std::string apiCall = std::string(API_BASE_AUTORENDER) + "/v1/mtriggers/search?game_dir=portal2&map_name=" + map_name + "&board_rank=" + std::to_string(rank);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
curl_easy_setopt(curl, CURLOPT_URL, apiCall.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writeCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
Expand Down

0 comments on commit 055f492

Please sign in to comment.