diff --git a/src/managers/auto_nong_manager.cpp b/src/managers/auto_nong_manager.cpp index dca20bc..a8a99ad 100644 --- a/src/managers/auto_nong_manager.cpp +++ b/src/managers/auto_nong_manager.cpp @@ -33,7 +33,14 @@ void AutoNongManager::loadIndexes() { .bytes() .then([this, index](const geode::ByteVector &r) { std::vector rVec = r; - std::string jsonString = decompressGz(rVec); + bool isGzip = (rVec.size() > 2) && (rVec[0] == 0x1F) && (rVec[1] == 0x8B); + + std::string jsonString; + if (isGzip) { + jsonString = decompressGz(rVec); + } else { + jsonString = std::string(rVec.begin(), rVec.end()); + } matjson::Value jsonObj = matjson::parse(jsonString);