@@ -36,14 +36,15 @@ v 4.0.0.7 2019-12-07 Zealot Using CMake for building
3636v 4.1.0.0 2020-01-25 Zealot New option for new golang web app
3737v 4.1.0.1 2020-01-26 Zealot Data compressing using gzip from zlib
3838v 4.1.0.2 2020-01-26 Zealot Filename is stripped from russion symbols and send to webservice, compress is mandatory
39+ v 4.1.0.3 2020-01-26 Zealot gz is not include in filename
3940
4041TODO:
4142- чтение запись настроек
4243
4344
4445*/
4546
46- #define CURRENT_VERSION " 4.1.0.2 "
47+ #define CURRENT_VERSION " 4.1.0.3 "
4748
4849#pragma endregion
4950
@@ -176,7 +177,7 @@ namespace {
176177 int newMode = 0 ;
177178 int httpRequestTimeout = 120 ;
178179 int traceLog = 0 ;
179- int compress = 0 ;
180+ // int compress = 0;
180181 } config;
181182}
182183
@@ -377,7 +378,7 @@ pair<string, string> saveCurrentReplayToTempFile() {
377378 LOG (INFO) << " Replay saved:" << tName;
378379 string archive_name;
379380
380- if (true || config.compress ) {
381+ if (true /* config.compress*/ ) {
381382 archive_name = string (tName) + " .gz" ;
382383 if (write_compressed_data (archive_name.c_str (), all_replay.c_str (), all_replay.size ())) {
383384 LOG (INFO) << " Archive saved:" << string (tName) + " .gz" ;
@@ -424,8 +425,8 @@ void readWriteConfig(HMODULE hModule) {
424425 { " newMode" , config.newMode },
425426 { " newUrl" , config.newUrl },
426427 { " newServerGameType" , config.newServerGameType },
427- { " newUrlRequestSecret" , config.newUrlRequestSecret },
428- { " compress" , config.compress }
428+ { " newUrlRequestSecret" , config.newUrlRequestSecret }
429+ // { "compress", config.compress}
429430 };
430431 std::ofstream out (path_sample, ofstream::out | ofstream::binary);
431432 out << j.dump (4 ) << endl;
@@ -503,14 +504,14 @@ void readWriteConfig(HMODULE hModule) {
503504 else {
504505 LOG (WARNING) << " newUrlRequestSecret should be string!" ;
505506 }
506-
507+ /*
507508 if (!jcfg["compress"].is_null() && jcfg["compress"].is_number_integer()) {
508509 config.compress = jcfg["compress"].get<int>();
509510 LOG(TRACE) << "Read compress=" << config.newMode;
510511 }
511512 else {
512513 LOG(WARNING) << "compress should be integer!";
513- }
514+ }*/
514515
515516 if (config.traceLog ) {
516517 el::Configurations defaultConf (*el::Loggers::getLogger (" default" )->configurations ());
@@ -577,7 +578,7 @@ void curlUploadNew(const string &b_url, const string &worldname,const string &mi
577578 curl_mime_filedata (part, file.c_str ());
578579 part = curl_mime_addpart (mime);
579580 curl_mime_name (part, " filename" );
580- curl_mime_data (part, archive ? (filename + " .gz " ). c_str () : filename.c_str (), CURL_ZERO_TERMINATED);
581+ curl_mime_data (part, filename.c_str (), CURL_ZERO_TERMINATED);
581582 part = curl_mime_addpart (mime);
582583 curl_mime_name (part, " worldName" );
583584 curl_mime_data (part, worldname.c_str (), CURL_ZERO_TERMINATED);
0 commit comments