mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
avoid a null ref, plus some cleanup
This commit is contained in:
@@ -177,10 +177,10 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
|
||||
if(buffer == null)
|
||||
{
|
||||
if (!(contentType.Contains("image")
|
||||
if (contentType != null && (!(contentType.Contains("image")
|
||||
|| contentType.Contains("x-shockwave-flash")
|
||||
|| contentType.Contains("application/x-oar")
|
||||
|| contentType.Contains("application/vnd.ll.mesh")))
|
||||
|| contentType.Contains("application/vnd.ll.mesh"))))
|
||||
{
|
||||
// Text
|
||||
buffer = Encoding.UTF8.GetBytes(responseString);
|
||||
|
||||
Reference in New Issue
Block a user