Committing updates.
This commit is contained in:
@@ -886,6 +886,7 @@ namespace Apostol {
|
||||
|
||||
const auto &caHost = pServerRequest->Headers["host"];
|
||||
const auto &caOrigin = pServerRequest->Headers["origin"];
|
||||
const auto &caContentType = pServerRequest->Headers["content-type"].Lower();
|
||||
|
||||
const auto &address = GetAddress(pServerRequest);
|
||||
const auto &code = pServerRequest->Params["code"];
|
||||
@@ -906,15 +907,15 @@ namespace Apostol {
|
||||
pProxyRequest->Clear();
|
||||
|
||||
pProxyRequest->Location = pServerRequest->Location;
|
||||
pProxyRequest->ContentType = StringToContentType(pServerRequest->Headers[_T("Content-Type")].Lower());
|
||||
|
||||
if (Method == "POST") {
|
||||
pProxyRequest->ContentType = StringToContentType(caContentType);
|
||||
pProxyRequest->Content = pServerRequest->Content;
|
||||
}
|
||||
|
||||
pProxyRequest->CloseConnection = true;
|
||||
|
||||
CHTTPRequest::Prepare(pProxyRequest, Method.c_str(), URI.c_str());
|
||||
CHTTPRequest::Prepare(pProxyRequest, Method.c_str(), URI.c_str(), caContentType.c_str());
|
||||
|
||||
pProxyRequest->AddHeader("Authorization", "Bearer " + m_CurrentServer.Tokens()["access_token"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user