Replace time-based GC with allocation-count trigger, migrate all Create factories to GCList::Create(), fix VFSPath root path, reorder TObject variant

This commit is contained in:
2026-09-01 06:04:58 -05:00
parent 2430b62232
commit c1c3d02bf0
8 changed files with 25 additions and 42 deletions
+2 -2
View File
@@ -823,8 +823,8 @@ static TObject Net_Http_ListenOnUnusedPort(GCList &ls,
static TObject Net_Http_MimeType(GCList &ls, std::vector<TObject> args) {
Tesses::Framework::Filesystem::VFSPath p;
if (GetArgumentAsPath(args, 0, p)) {
std::filesystem::path p2 = p.GetFileName();
return HttpUtils::GetMimeType(p2);
return HttpUtils::GetMimeTypePath(p);
}
return std::string("application/octet-stream");
}