Moved another dependency

This commit is contained in:
kdeng00
2020-12-18 01:50:58 -05:00
parent 3ad04ca9a6
commit 231b12d60b
6 changed files with 21 additions and 27 deletions
+3 -4
View File
@@ -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"}});