Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#270: update curl from 7.59.0 to 7.61.0 #271

Merged
11 commits merged into from Aug 4, 2018
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions Server/mods/deathmatch/logic/CRemoteCalls.cpp
Expand Up @@ -154,6 +154,7 @@ CRemoteCall::CRemoteCall(const char* szServerHost, const char* szResourceName, c
arguments->WriteToJSONString(m_options.strPostData, true);
m_options.bPostBinary = false;
m_options.bIsLegacy = true;
m_options.requestHeaders["Content-Type"] = "application/json";
m_bIsFetch = false;

m_strURL = SString("http://%s/%s/call/%s", szServerHost, szResourceName, szFunctionName);
Expand All @@ -172,6 +173,7 @@ CRemoteCall::CRemoteCall(const char* szURL, CLuaArguments* arguments, CLuaMain*
arguments->WriteToJSONString(m_options.strPostData, true);
m_options.bPostBinary = false;
m_options.bIsLegacy = true;
m_options.requestHeaders["Content-Type"] = "application/json";
m_bIsFetch = false;

m_strURL = szURL;
Expand Down Expand Up @@ -235,12 +237,10 @@ void CRemoteCall::DownloadFinishedCallback(const SHttpDownloadResult& result)
if (result.bSuccess)
{
if (pCall->IsFetch())
{
arguments.PushString(std::string(result.pData, result.dataSize));
arguments.PushNumber(0);
}
else
arguments.ReadFromJSONString(result.pData);
arguments.PushNumber(0);
}
else
{
Expand Down