diff --git a/cpp-httplib b/cpp-httplib index 22615f9..4139949 160000 --- a/cpp-httplib +++ b/cpp-httplib @@ -1 +1 @@ -Subproject commit 22615f96828a72d84019b748ede01fa11d905977 +Subproject commit 413994912d19b76262078fa54c4beb9de700b633 diff --git a/src/api.cpp b/src/api.cpp index 29e777b..eeea028 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -44,7 +44,8 @@ budget::api_response base_api_get(Cli& cli, const std::string& api) { auto base_res = std::make_shared(); std::shared_ptr res; - if (cli.send(req, *base_res)) { + auto error = httplib::Error::Success; + if (cli.send(req, *base_res, error)) { res = base_res; } else { res = nullptr; @@ -110,7 +111,8 @@ budget::api_response base_api_post(Cli& cli, const std::string& api, const std:: auto base_res = std::make_shared(); std::shared_ptr res; - if (cli.send(req, *base_res)) { + auto error = httplib::Error::Success; + if (cli.send(req, *base_res, error)) { res = base_res; } else { res = nullptr;