Skip to content

Commit

Permalink
Addendum to 1a23a62 (Added to fetchRemote: username/password, redirec…
Browse files Browse the repository at this point in the history
…tion)
  • Loading branch information
ccw808 committed May 14, 2017
1 parent 1a23a62 commit 1a1d04d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Client/mods/deathmatch/logic/lua/CLuaFunctionDefs.World.cpp
Expand Up @@ -1895,8 +1895,8 @@ int CLuaFunctionDefs::FetchRemote ( lua_State* luaVM )
optionsMap.ReadString("postData", httpRequestOptions.strPostData, "");
optionsMap.ReadBool("postIsBinary", httpRequestOptions.bPostBinary, false);
optionsMap.ReadNumber("maxRedirects", httpRequestOptions.uiMaxRedirects, 8);
optionsMap.ReadString("authUsername", httpRequestOptions.strAuthUsername, "");
optionsMap.ReadString("authPassword", httpRequestOptions.strAuthPassword, "");
optionsMap.ReadString("username", httpRequestOptions.strUsername, "");
optionsMap.ReadString("password", httpRequestOptions.strPassword, "");

CStringMap headersMap;
optionsMap.ReadStringMap("headers", headersMap);
Expand Down
4 changes: 2 additions & 2 deletions Client/sdk/net/CNetHTTPDownloadManagerInterface.h
Expand Up @@ -22,8 +22,8 @@ struct SHttpRequestOptions
SString strRequestMethod;
std::map<SString,SString> requestHeaders;
uint uiMaxRedirects = 8;
SString strAuthUsername;
SString strAuthPassword;
SString strUsername;
SString strPassword;
};

struct SHttpDownloadResult
Expand Down
4 changes: 2 additions & 2 deletions Server/mods/deathmatch/logic/lua/CLuaFunctionDefs.Server.cpp
Expand Up @@ -660,8 +660,8 @@ int CLuaFunctionDefs::FetchRemote ( lua_State* luaVM )
optionsMap.ReadString("postData", httpRequestOptions.strPostData, "");
optionsMap.ReadBool("postIsBinary", httpRequestOptions.bPostBinary, false);
optionsMap.ReadNumber("maxRedirects", httpRequestOptions.uiMaxRedirects, 8);
optionsMap.ReadString("authUsername", httpRequestOptions.strAuthUsername, "");
optionsMap.ReadString("authPassword", httpRequestOptions.strAuthPassword, "");
optionsMap.ReadString("username", httpRequestOptions.strUsername, "");
optionsMap.ReadString("password", httpRequestOptions.strPassword, "");

CStringMap headersMap;
optionsMap.ReadStringMap("headers", headersMap);
Expand Down
4 changes: 2 additions & 2 deletions Server/sdk/net/CNetHTTPDownloadManagerInterface.h
Expand Up @@ -22,8 +22,8 @@ struct SHttpRequestOptions
SString strRequestMethod;
std::map<SString,SString> requestHeaders;
uint uiMaxRedirects = 8;
SString strAuthUsername;
SString strAuthPassword;
SString strUsername;
SString strPassword;
};

struct SHttpDownloadResult
Expand Down

0 comments on commit 1a1d04d

Please sign in to comment.