Skip to content

Commit 0220037

Browse files
committed
Fixed callRemote() callback arguments. Bug introduced in ffa943c (Added to fetchRemote: request method, request headers and response headers)
1 parent 5441028 commit 0220037

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Client/mods/deathmatch/logic/CRemoteCalls.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ CRemoteCall::CRemoteCall ( const char * szServerHost, const char * szResourceNam
152152

153153
arguments->WriteToJSONString ( m_options.strPostData, true );
154154
m_options.bPostBinary = false;
155+
m_options.bIsLegacy = true;
155156
m_bIsFetch = false;
156157

157158
m_strURL = SString ( "http://%s/%s/call/%s", szServerHost, szResourceName, szFunctionName );
@@ -168,6 +169,7 @@ CRemoteCall::CRemoteCall ( const char * szURL, CLuaArguments * arguments, CLuaMa
168169

169170
arguments->WriteToJSONString ( m_options.strPostData, true );
170171
m_options.bPostBinary = false;
172+
m_options.bIsLegacy = true;
171173
m_bIsFetch = false;
172174

173175
m_strURL = szURL;
@@ -185,6 +187,7 @@ CRemoteCall::CRemoteCall ( const char * szURL, CLuaArguments * fetchArguments, c
185187

186188
m_options.strPostData = strPostData;
187189
m_options.bPostBinary = bPostBinary;
190+
m_options.bIsLegacy = true;
188191
m_bIsFetch = true;
189192

190193
m_strURL = szURL;

Server/mods/deathmatch/logic/CRemoteCalls.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ CRemoteCall::CRemoteCall ( const char * szServerHost, const char * szResourceNam
150150

151151
arguments->WriteToJSONString ( m_options.strPostData, true );
152152
m_options.bPostBinary = false;
153+
m_options.bIsLegacy = true;
153154
m_bIsFetch = false;
154155

155156
m_strURL = SString ( "http://%s/%s/call/%s", szServerHost, szResourceName, szFunctionName );
@@ -166,6 +167,7 @@ CRemoteCall::CRemoteCall ( const char * szURL, CLuaArguments * arguments, CLuaMa
166167

167168
arguments->WriteToJSONString ( m_options.strPostData, true );
168169
m_options.bPostBinary = false;
170+
m_options.bIsLegacy = true;
169171
m_bIsFetch = false;
170172

171173
m_strURL = szURL;
@@ -183,6 +185,7 @@ CRemoteCall::CRemoteCall ( const char * szURL, CLuaArguments * fetchArguments, c
183185

184186
m_options.strPostData = strPostData;
185187
m_options.bPostBinary = bPostBinary;
188+
m_options.bIsLegacy = true;
186189
m_bIsFetch = true;
187190

188191
m_strURL = szURL;

0 commit comments

Comments
 (0)