Detect KTX files as image/ktx.
PiperOrigin-RevId: 889260070 Change-Id: I93a505bca3da87d05c71fe302f9e7ac31806ab90
This commit is contained in:
committed by
Copybara-Service
parent
10c5f5d066
commit
4fce53c31f
@@ -967,6 +967,8 @@ std::string mjuu_extToContentType(std::string_view filename) {
|
||||
return "model/vnd.mujoco.msh";
|
||||
} else if (!strcasecmp(ext.c_str(), ".png")) {
|
||||
return "image/png";
|
||||
} else if (!strcasecmp(ext.c_str(), ".ktx")) {
|
||||
return "image/ktx";
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user