aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/RestPlugin.cs')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/RestPlugin.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
index e395840..8373ea2 100644
--- a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
+++ b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
@@ -66,7 +66,7 @@ namespace OpenSim.ApplicationPlugins.Rest
66 // which all REST URLs 66 // which all REST URLs
67 // are living 67 // are living
68 private StringWriter _sw = null; 68 private StringWriter _sw = null;
69 private XmlTextWriter _xw = null; 69 private RestXmlWriter _xw = null;
70 70
71 private string _godkey; 71 private string _godkey;
72 private int _reqk; 72 private int _reqk;
@@ -159,7 +159,7 @@ namespace OpenSim.ApplicationPlugins.Rest
159 if (null == _xw) 159 if (null == _xw)
160 { 160 {
161 _sw = new StringWriter(); 161 _sw = new StringWriter();
162 _xw = new XmlTextWriter(_sw); 162 _xw = new RestXmlWriter(_sw);
163 _xw.Formatting = Formatting.Indented; 163 _xw.Formatting = Formatting.Indented;
164 } 164 }
165 return _xw; } 165 return _xw; }
@@ -170,6 +170,7 @@ namespace OpenSim.ApplicationPlugins.Rest
170 get 170 get
171 { 171 {
172 _xw.Flush(); 172 _xw.Flush();
173 _xw.Close();
173 _xw = null; 174 _xw = null;
174 175
175 return _sw.ToString(); 176 return _sw.ToString();