[Cache] Refactored Cache::GetUrl

- renamed GetUrl() to GetStaticUrl()
This commit is contained in:
/dev/root
2016-11-25 14:16:07 +01:00
parent 124e86387b
commit 4254179520
3 changed files with 11 additions and 11 deletions

View File

@ -12,9 +12,9 @@ namespace Utils
std::string Cache::ValidUrl;
std::mutex Cache::CacheMutex;
std::string Cache::GetUrl(std::string path)
std::string Cache::GetStaticUrl(std::string path)
{
return Cache::Urls[ARRAY_SIZE(Cache::Urls) - 1] + path;
return Cache::Urls[0] + path;
}
std::string Cache::GetUrl(std::string url, std::string path)

View File

@ -3,7 +3,7 @@ namespace Utils
class Cache
{
public:
static std::string GetUrl(std::string path);
static std::string GetStaticUrl(std::string path);
static std::string GetFile(std::string path, int timeout = 5000, std::string useragent = "IW4x");
private: