diff options
Diffstat (limited to 'OpenSim/Server/Handlers/Map/MapGetServerConnector.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Map/MapGetServerConnector.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs index 9448af7..76dd695 100644 --- a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs +++ b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs | |||
@@ -83,13 +83,12 @@ namespace OpenSim.Server.Handlers.MapImage | |||
83 | 83 | ||
84 | string format = string.Empty; | 84 | string format = string.Empty; |
85 | result = m_MapService.GetMapTile(path.Trim('/'), out format); | 85 | result = m_MapService.GetMapTile(path.Trim('/'), out format); |
86 | |||
87 | if (result.Length > 0) | 86 | if (result.Length > 0) |
88 | { | 87 | { |
89 | httpResponse.StatusCode = (int)HttpStatusCode.OK; | 88 | httpResponse.StatusCode = (int)HttpStatusCode.OK; |
90 | if (format.Equals("png")) | 89 | if (format.Equals(".png")) |
91 | httpResponse.ContentType = "image/png"; | 90 | httpResponse.ContentType = "image/png"; |
92 | else if (format.Equals("jpg") || format.Equals("jpeg")) | 91 | else if (format.Equals(".jpg") || format.Equals(".jpeg")) |
93 | httpResponse.ContentType = "image/jpeg"; | 92 | httpResponse.ContentType = "image/jpeg"; |
94 | } | 93 | } |
95 | else | 94 | else |