Committing updates.
This commit is contained in:
@@ -942,7 +942,6 @@ namespace Apostol {
|
|||||||
ProxyRequest.Clear();
|
ProxyRequest.Clear();
|
||||||
|
|
||||||
ProxyRequest.Location = Location.hostname + caServerRequest.Location.pathname + caServerRequest.Location.search;
|
ProxyRequest.Location = Location.hostname + caServerRequest.Location.pathname + caServerRequest.Location.search;
|
||||||
ProxyRequest.Headers.Values("Host", ProxyRequest.Location.Host());
|
|
||||||
|
|
||||||
if (Method == "POST") {
|
if (Method == "POST") {
|
||||||
ProxyRequest.ContentType = StringToContentType(caContentType);
|
ProxyRequest.ContentType = StringToContentType(caContentType);
|
||||||
@@ -953,6 +952,8 @@ namespace Apostol {
|
|||||||
|
|
||||||
CHTTPRequest::Prepare(ProxyRequest, Method.c_str(), URI.c_str(), caContentType.c_str());
|
CHTTPRequest::Prepare(ProxyRequest, Method.c_str(), URI.c_str(), caContentType.c_str());
|
||||||
|
|
||||||
|
ProxyRequest.Headers.Values("Host", ProxyRequest.Location.Host());
|
||||||
|
|
||||||
ProxyRequest.AddHeader("Authorization", "Bearer " + caContext.Tokens()["access_token"]);
|
ProxyRequest.AddHeader("Authorization", "Bearer " + caContext.Tokens()["access_token"]);
|
||||||
|
|
||||||
if (!caModuleAddress.IsEmpty())
|
if (!caModuleAddress.IsEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user