mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* Added a sanity check for missing asset data in LLClientView
* Moved the SL asset type to content type conversion methods from ServerUtils to OpenSim.Framework.SLUtil * Linked content type to asset type in AssetMetadata
This commit is contained in:
@@ -91,7 +91,7 @@ namespace OpenSim.Server.Handlers.Asset
|
||||
|
||||
httpResponse.StatusCode = (int)HttpStatusCode.OK;
|
||||
httpResponse.ContentType =
|
||||
ServerUtils.SLAssetTypeToContentType(metadata.Type);
|
||||
SLUtil.SLAssetTypeToContentType(metadata.Type);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -111,7 +111,7 @@ namespace OpenSim.Server.Handlers.Asset
|
||||
|
||||
httpResponse.StatusCode = (int)HttpStatusCode.OK;
|
||||
httpResponse.ContentType =
|
||||
ServerUtils.SLAssetTypeToContentType(asset.Type);
|
||||
SLUtil.SLAssetTypeToContentType(asset.Type);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user