diff --git a/src/Http.cpp b/src/Http.cpp index 155b557..3fa96e7 100644 --- a/src/Http.cpp +++ b/src/Http.cpp @@ -123,9 +123,13 @@ std::string Http::POST(const std::string& host, const std::string& target, const beast::flat_buffer buffer; http::response response; - auto BackendName = response.base().find("Date"); + auto BackendName = response.base().find("BeamMP-Endpoint"); if (BackendName != response.base().end()) { - Application::Console().Write("HTTP POST: Date is " + std::string(BackendName->value())); + Application::Console().Write("HTTP POST: BeamMP-Endpoint is " + std::string(BackendName->value())); + } else { + for (const auto& header : response.base()) { + Application::Console().Write(header.name_string().data() + std::string(" = ") + std::string(header.value())); + } } http::read(stream, buffer, response);