Fix a potential loop request bug which may cause server to overload

This commit is contained in:
Tindy X committed 2020-01-30 11:10:19 +08:00
1 parent 2073d0ef25
commit 7c546e9606
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@
extern bool print_debug_info;
//std::string user_agent_str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36";
static std::string user_agent_str = "subconverter/latest cURL/7.xx-DEV";
std::string user_agent_str = "subconverter/latest cURL/7.xx-DEV";
static int writer(char *data, size_t size, size_t nmemb, std::string *writerData)
{