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

@@ -25,7 +25,8 @@ Author:
#define BPS_SERVER_PORT 4977
#define BPS_SERVER_URL "http://localhost:4977"
#define BPS_BM_SERVER_ADDRESS "BM-2cX8y9u9yEi3fdqQfndx9F6NdR5Hv79add"
#define BPS_BM_DEBUG_ADDRESS "BM-2cXtL92m3CavBKx8qsV2LbZtAU3eQxW2rB"
//#define BPS_BM_DEBUG_ADDRESS "BM-2cXtL92m3CavBKx8qsV2LbZtAU3eQxW2rB"
#define BPS_BM_DEBUG_ADDRESS "BM-2cX8y9u9yEi3fdqQfndx9F6NdR5Hv79add"
//----------------------------------------------------------------------------------------------------------------------
#ifdef __cplusplus

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);