diff options
author | UbitUmarov | 2018-01-08 12:00:21 +0000 |
---|---|---|
committer | UbitUmarov | 2018-01-08 12:00:21 +0000 |
commit | eec3921800e3a19f210c0488d78399c210f9b9d6 (patch) | |
tree | 9d1f1dfc98e518e060b5d172891051edae8c9561 /OpenSim/Framework/Servers/HttpServer/RestSessionService.cs | |
parent | a few more xml things (diff) | |
download | opensim-SC-eec3921800e3a19f210c0488d78399c210f9b9d6.zip opensim-SC-eec3921800e3a19f210c0488d78399c210f9b9d6.tar.gz opensim-SC-eec3921800e3a19f210c0488d78399c210f9b9d6.tar.bz2 opensim-SC-eec3921800e3a19f210c0488d78399c210f9b9d6.tar.xz |
fall back to a obsolete property since several monos in use (include our own) do not suporte the proper .net4.0 one
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/RestSessionService.cs')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/RestSessionService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs b/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs index dc720dd..1887a13 100644 --- a/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs +++ b/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs | |||
@@ -210,7 +210,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
210 | { | 210 | { |
211 | try | 211 | try |
212 | { | 212 | { |
213 | xmlReader.DtdProcessing = DtdProcessing.Prohibit; | 213 | xmlReader.ProhibitDtd = true; |
214 | xmlReader.XmlResolver = null; | 214 | xmlReader.XmlResolver = null; |
215 | XmlSerializer deserializer = new XmlSerializer(typeof(RestSessionObject<TRequest>)); | 215 | XmlSerializer deserializer = new XmlSerializer(typeof(RestSessionObject<TRequest>)); |
216 | deserial = (RestSessionObject<TRequest>)deserializer.Deserialize(xmlReader); | 216 | deserial = (RestSessionObject<TRequest>)deserializer.Deserialize(xmlReader); |
@@ -271,7 +271,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
271 | { | 271 | { |
272 | try | 272 | try |
273 | { | 273 | { |
274 | xmlReader.DtdProcessing = DtdProcessing.Prohibit; | 274 | xmlReader.ProhibitDtd = true; |
275 | xmlReader.XmlResolver = null; | 275 | xmlReader.XmlResolver = null; |
276 | XmlSerializer deserializer = new XmlSerializer(typeof(TRequest)); | 276 | XmlSerializer deserializer = new XmlSerializer(typeof(TRequest)); |
277 | deserial = (TRequest)deserializer.Deserialize(xmlReader); | 277 | deserial = (TRequest)deserializer.Deserialize(xmlReader); |