diff options
author | Diva Canto | 2011-06-12 17:05:45 -0700 |
---|---|---|
committer | Diva Canto | 2011-06-12 17:05:45 -0700 |
commit | 78c16da5444a2e363de50bc88c8d2b929dec0989 (patch) | |
tree | 9dc676c9e12db4538813327b77e4abbdf9a96d13 /OpenSim/Server/Handlers/Map/MapGetServerConnector.cs | |
parent | First pass at making the V2 map work. Standalones only for now. There are som... (diff) | |
download | opensim-SC_OLD-78c16da5444a2e363de50bc88c8d2b929dec0989.zip opensim-SC_OLD-78c16da5444a2e363de50bc88c8d2b929dec0989.tar.gz opensim-SC_OLD-78c16da5444a2e363de50bc88c8d2b929dec0989.tar.bz2 opensim-SC_OLD-78c16da5444a2e363de50bc88c8d2b929dec0989.tar.xz |
A few bug fixes on map V2. Zoom level weirdness still there.
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 |