A few bug fixes on map V2. Zoom level weirdness still there.

This commit is contained in:
Diva Canto
2011-06-12 17:05:45 -07:00
parent fd57c91b4a
commit 78c16da544
3 changed files with 15 additions and 10 deletions

View File

@@ -83,13 +83,12 @@ namespace OpenSim.Server.Handlers.MapImage
string format = string.Empty;
result = m_MapService.GetMapTile(path.Trim('/'), out format);
if (result.Length > 0)
{
httpResponse.StatusCode = (int)HttpStatusCode.OK;
if (format.Equals("png"))
if (format.Equals(".png"))
httpResponse.ContentType = "image/png";
else if (format.Equals("jpg") || format.Equals("jpeg"))
else if (format.Equals(".jpg") || format.Equals(".jpeg"))
httpResponse.ContentType = "image/jpeg";
}
else