Fixed bug.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user