Moved another dependency
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <fstream>
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <sstream>
|
||||
@@ -11,8 +10,6 @@
|
||||
|
||||
#include "manager/DirectoryManager.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
namespace manager {
|
||||
model::Token TokenManager::retrieveToken(const model::BinaryPath& bConf) {
|
||||
auto cred = parseAuthCredentials(bConf);
|
||||
@@ -93,7 +90,9 @@ namespace manager {
|
||||
|
||||
|
||||
cpr::Response TokenManager::sendRequest(std::string_view uri, nlohmann::json& obj) {
|
||||
auto resp = cpr::Post(cpr::Url{uri}, cpr::Body{obj.dump()},
|
||||
const std::string uriString(uri.begin(), uri.end());
|
||||
|
||||
auto resp = cpr::Post(cpr::Url(uriString), cpr::Body{obj.dump()},
|
||||
cpr::Header{{"Content-type", "application/json"},
|
||||
{"Connection", "keep-alive"}});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user