From b6b421d2dca7ae72f86305b89f80f3b7cc5b26a3 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Tue, 14 Sep 2021 16:38:57 +0200 Subject: [PATCH] if someone asks, we're firefox Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/296c246d4545eea291655a319dfe4d32289bcdbd Author: TangoCash Date: 2021-09-14 (Tue, 14 Sep 2021) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/system/helpers.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/system/helpers.h b/src/system/helpers.h index 8cd975508..5866052d1 100644 --- a/src/system/helpers.h +++ b/src/system/helpers.h @@ -36,6 +36,8 @@ #include #include +#define AGENT "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0" + typedef uint64_t t_channel_id; int my_system(const char * cmd); @@ -189,8 +191,8 @@ size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data); std::string encodeUrl(std::string txt); std::string decodeUrl(std::string url); -bool getUrl(std::string &url, std::string &answer, const std::string userAgent = " ", unsigned int timeout = 60); -bool downloadUrl(std::string url, std::string file, const std::string userAgent = " ", unsigned int timeout = 60); +bool getUrl(std::string &url, std::string &answer, const std::string userAgent = AGENT, unsigned int timeout = 60); +bool downloadUrl(std::string url, std::string file, const std::string userAgent = AGENT, unsigned int timeout = 60); bool isDigitWord(std::string str);