Skip to content

Commit e9d4c27

Browse files
patrikjuvonenqaisjp
authored andcommitted
CRemoteCalls: set application/json Content-Type
1 parent 6a75800 commit e9d4c27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Server/mods/deathmatch/logic/CRemoteCalls.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ CRemoteCall::CRemoteCall(const char* szServerHost, const char* szResourceName, c
154154
arguments->WriteToJSONString(m_options.strPostData, true);
155155
m_options.bPostBinary = false;
156156
m_options.bIsLegacy = true;
157+
m_options.requestHeaders["Content-Type"] = "application/json";
157158
m_bIsFetch = false;
158159

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

177179
m_strURL = szURL;

0 commit comments

Comments
 (0)