diff --git a/src/Http.cpp b/src/Http.cpp index 47bcbb2..886e103 100644 --- a/src/Http.cpp +++ b/src/Http.cpp @@ -1,11 +1,10 @@ #include "Http.h" - +#include "Common.h" #include #include #include #include -#include "Common.h" namespace beast = boost::beast; // from namespace http = beast::http; // from @@ -140,5 +139,8 @@ std::string Http::POST(const std::string& host, const std::string& target, const } catch (const std::exception& e) { error(e.what()); return "-1"; + } catch (const boost::system::system_error& e) { + error(e.what()); + return "-1"; } -} \ No newline at end of file +}