Skip to content

Commit

Permalink
cli follow location, windows.h on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed May 2, 2024
1 parent 77a3333 commit b195052
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions backend/src/RemoteData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
#include <absl/strings/match.h>
#include <absl/strings/str_split.h>
#include <cstddef>
#include <httplib.h>
#include <mutex>
#include <quill/Quill.h>
#include <quill/detail/LogMacros.h>
#include <string>

#include "Helpers.hpp"
#include "Shared.hpp"

#define WIN32_LEAN_AND_MEAN
#include <httplib.h>
#ifdef _WIN32
#include <Windows.h>
#endif

class RemoteData {

public:
Expand Down Expand Up @@ -49,6 +53,7 @@ class RemoteData {
}

httplib::Client slurperCli(SLURPER_BASE_URL);
slurperCli.set_follow_location(true);
auto res = slurperCli.Get(SLURPER_DATA_ENDPOINT + std::string("?cid=") + UserSession::cid);

if (!res) {
Expand Down

0 comments on commit b195052

Please sign in to comment.