Fixed bug.

This commit is contained in:
Преподобный Ален
2025-03-10 17:27:08 +03:00
parent 61b3f437f2
commit af16091893
2 changed files with 5 additions and 2 deletions

View File

@@ -263,10 +263,10 @@ namespace Apostol {
const auto &caContext = index == -1 ? m_CurrentServer : m_Servers[index].Value();
const auto &caServer = caContext.URL().Origin();
CStringList caClearText;
CString sPayload;
if (!caServerRequest.Content.IsEmpty()) {
CStringList caClearText;
const auto &ContentType = caServerRequest.Headers.Values(_T("content-type"));
@@ -435,6 +435,8 @@ namespace Apostol {
if (!caOrigin.IsEmpty()) {
Json.Object().AddPair("origin", caOrigin);
} else {
Json.Object().AddPair("origin", GetProtocol(AConnection) + "://" + caHost);
}
Json.Object().AddPair("module", Module);