aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/WebUtil.cs
diff options
context:
space:
mode:
authorDiva Canto2011-04-30 16:53:43 -0700
committerDiva Canto2011-04-30 16:53:43 -0700
commit56df7461330b1d193f3f60274525eb1b128315ef (patch)
treeb97f6afd34e96aef55b345aca02946de84dbe1ab /OpenSim/Framework/WebUtil.cs
parentCheck for RegionID instead of RegionHandle. Other minor tweaks (diff)
downloadopensim-SC_OLD-56df7461330b1d193f3f60274525eb1b128315ef.zip
opensim-SC_OLD-56df7461330b1d193f3f60274525eb1b128315ef.tar.gz
opensim-SC_OLD-56df7461330b1d193f3f60274525eb1b128315ef.tar.bz2
opensim-SC_OLD-56df7461330b1d193f3f60274525eb1b128315ef.tar.xz
XXX DEBUGGING!
Diffstat (limited to 'OpenSim/Framework/WebUtil.cs')
-rw-r--r--OpenSim/Framework/WebUtil.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 9d70f63..5449a6f 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -177,7 +177,16 @@ namespace OpenSim.Framework
177 // If there is some input, write it into the request 177 // If there is some input, write it into the request
178 if (data != null) 178 if (data != null)
179 { 179 {
180 string strBuffer = OSDParser.SerializeJsonString(data); 180 string strBuffer = string.Empty;
181 try
182 {
183 strBuffer = OSDParser.SerializeJsonString(data);
184 }
185 catch (Exception e)
186 {
187 m_log.DebugFormat("[WEB UTIL]: Exception serializing data {0}", e.Message);
188 throw e;
189 }
181 byte[] buffer = System.Text.Encoding.UTF8.GetBytes(strBuffer); 190 byte[] buffer = System.Text.Encoding.UTF8.GetBytes(strBuffer);
182 191
183 request.ContentType = "application/json"; 192 request.ContentType = "application/json";