Skip to content

Commit 1a1d04d

Browse files
committed
Addendum to 1a23a62 (Added to fetchRemote: username/password, redirection)
1 parent 1a23a62 commit 1a1d04d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Client/mods/deathmatch/logic/lua/CLuaFunctionDefs.World.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,8 +1895,8 @@ int CLuaFunctionDefs::FetchRemote ( lua_State* luaVM )
18951895
optionsMap.ReadString("postData", httpRequestOptions.strPostData, "");
18961896
optionsMap.ReadBool("postIsBinary", httpRequestOptions.bPostBinary, false);
18971897
optionsMap.ReadNumber("maxRedirects", httpRequestOptions.uiMaxRedirects, 8);
1898-
optionsMap.ReadString("authUsername", httpRequestOptions.strAuthUsername, "");
1899-
optionsMap.ReadString("authPassword", httpRequestOptions.strAuthPassword, "");
1898+
optionsMap.ReadString("username", httpRequestOptions.strUsername, "");
1899+
optionsMap.ReadString("password", httpRequestOptions.strPassword, "");
19001900

19011901
CStringMap headersMap;
19021902
optionsMap.ReadStringMap("headers", headersMap);

Client/sdk/net/CNetHTTPDownloadManagerInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ struct SHttpRequestOptions
2222
SString strRequestMethod;
2323
std::map<SString,SString> requestHeaders;
2424
uint uiMaxRedirects = 8;
25-
SString strAuthUsername;
26-
SString strAuthPassword;
25+
SString strUsername;
26+
SString strPassword;
2727
};
2828

2929
struct SHttpDownloadResult

Server/mods/deathmatch/logic/lua/CLuaFunctionDefs.Server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ int CLuaFunctionDefs::FetchRemote ( lua_State* luaVM )
660660
optionsMap.ReadString("postData", httpRequestOptions.strPostData, "");
661661
optionsMap.ReadBool("postIsBinary", httpRequestOptions.bPostBinary, false);
662662
optionsMap.ReadNumber("maxRedirects", httpRequestOptions.uiMaxRedirects, 8);
663-
optionsMap.ReadString("authUsername", httpRequestOptions.strAuthUsername, "");
664-
optionsMap.ReadString("authPassword", httpRequestOptions.strAuthPassword, "");
663+
optionsMap.ReadString("username", httpRequestOptions.strUsername, "");
664+
optionsMap.ReadString("password", httpRequestOptions.strPassword, "");
665665

666666
CStringMap headersMap;
667667
optionsMap.ReadStringMap("headers", headersMap);

Server/sdk/net/CNetHTTPDownloadManagerInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ struct SHttpRequestOptions
2222
SString strRequestMethod;
2323
std::map<SString,SString> requestHeaders;
2424
uint uiMaxRedirects = 8;
25-
SString strAuthUsername;
26-
SString strAuthPassword;
25+
SString strUsername;
26+
SString strPassword;
2727
};
2828

2929
struct SHttpDownloadResult

0 commit comments

Comments
 (0)