diff options
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Regions')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs b/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs index fa5f117..aeb91a9 100644 --- a/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs +++ b/OpenSim/ApplicationPlugins/Rest/Regions/RestRegionPlugin.cs | |||
@@ -57,6 +57,12 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
57 | public partial class RestRegionPlugin : RestPlugin | 57 | public partial class RestRegionPlugin : RestPlugin |
58 | { | 58 | { |
59 | private static XmlSerializerNamespaces _xmlNs; | 59 | private static XmlSerializerNamespaces _xmlNs; |
60 | |||
61 | static RestRegionPlugin() | ||
62 | { | ||
63 | _xmlNs = new XmlSerializerNamespaces(); | ||
64 | _xmlNs.Add(String.Empty, String.Empty); | ||
65 | } | ||
60 | 66 | ||
61 | #region overriding properties | 67 | #region overriding properties |
62 | public override string Name | 68 | public override string Name |
@@ -91,9 +97,6 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
91 | } | 97 | } |
92 | m_log.InfoFormat("{0} REST region plugin enabled", MsgID); | 98 | m_log.InfoFormat("{0} REST region plugin enabled", MsgID); |
93 | 99 | ||
94 | _xmlNs = new XmlSerializerNamespaces(); | ||
95 | _xmlNs.Add(String.Empty, String.Empty); | ||
96 | |||
97 | // add REST method handlers | 100 | // add REST method handlers |
98 | AddRestStreamHandler("GET", "/regions/", GetHandler); | 101 | AddRestStreamHandler("GET", "/regions/", GetHandler); |
99 | AddRestStreamHandler("POST", "/regions/", PostHandler); | 102 | AddRestStreamHandler("POST", "/regions/", PostHandler); |