mirror of
https://git.tesses.org/tesses50/crosslang.git
synced 2026-09-30 16:54:14 +00:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user