diff options
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs b/OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs index d812e24..35b4d8a 100644 --- a/OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs +++ b/OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs | |||
@@ -44,6 +44,7 @@ using OpenSim.Framework; | |||
44 | using OpenSim.Framework.Console; | 44 | using OpenSim.Framework.Console; |
45 | using OpenSim.Framework.Servers; | 45 | using OpenSim.Framework.Servers; |
46 | using OpenSim.Framework.Communications; | 46 | using OpenSim.Framework.Communications; |
47 | using OpenSim.Region.Environment.Interfaces; | ||
47 | using OpenSim.Region.Environment.Scenes; | 48 | using OpenSim.Region.Environment.Scenes; |
48 | using OpenSim.ApplicationPlugins.Rest; | 49 | using OpenSim.ApplicationPlugins.Rest; |
49 | 50 | ||
@@ -219,7 +220,11 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
219 | { | 220 | { |
220 | httpResponse.SendChunked = true; | 221 | httpResponse.SendChunked = true; |
221 | httpResponse.ContentType = "text/xml"; | 222 | httpResponse.ContentType = "text/xml"; |
222 | scene.SavePrimsToXml2(new StreamWriter(httpResponse.OutputStream), min, max); | 223 | |
224 | IRegionSerialiserModule serialiser = scene.RequestModuleInterface<IRegionSerialiserModule>(); | ||
225 | if (serialiser != null) | ||
226 | serialiser.SavePrimsToXml2(scene, new StreamWriter(httpResponse.OutputStream), min, max); | ||
227 | |||
223 | return ""; | 228 | return ""; |
224 | } | 229 | } |
225 | } | 230 | } |