aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2016-12-09 04:50:07 +0000
committerUbitUmarov2016-12-09 04:50:07 +0000
commit8114ff9d065e37f3301b3fb4ac4a9f4e7121e8da (patch)
treeca6a6e9200e4c1cd69104ce405338ee54dde2de3
parentprovide remote SSLcommonName to xmlRpcRequest methods, but in a away it can b... (diff)
parentJsonRpc: don't try to connect to a empty uri (diff)
downloadopensim-SC-8114ff9d065e37f3301b3fb4ac4a9f4e7121e8da.zip
opensim-SC-8114ff9d065e37f3301b3fb4ac4a9f4e7121e8da.tar.gz
opensim-SC-8114ff9d065e37f3301b3fb4ac4a9f4e7121e8da.tar.bz2
opensim-SC-8114ff9d065e37f3301b3fb4ac4a9f4e7121e8da.tar.xz
Merge branch 'master' into httptests
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs3
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs2
2 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs
index 2fe1a7d..f3faf4f 100644
--- a/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs
+++ b/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs
@@ -77,6 +77,9 @@ namespace OpenSim.Framework.Servers.HttpServer
77 if (parameters == null) 77 if (parameters == null)
78 throw new ArgumentNullException("parameters"); 78 throw new ArgumentNullException("parameters");
79 79
80 if(string.IsNullOrWhiteSpace(uri))
81 return false;
82
80 OSDMap request = new OSDMap(); 83 OSDMap request = new OSDMap();
81 request.Add("jsonrpc", OSD.FromString("2.0")); 84 request.Add("jsonrpc", OSD.FromString("2.0"));
82 request.Add("id", OSD.FromString(jsonId)); 85 request.Add("id", OSD.FromString(jsonId));
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
index 032104d..6873325 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
@@ -1675,7 +1675,7 @@ namespace OpenSim.Region.ClientStack.Linden
1675 if(fail) 1675 if(fail)
1676 { 1676 {
1677 if(client != null) 1677 if(client != null)
1678 client.SendAlertMessage(message, "HomePositionSet"); 1678 client.SendAlertMessage(message);
1679 response = OSDParser.SerializeLLSDXmlString(resp); 1679 response = OSDParser.SerializeLLSDXmlString(resp);
1680 return response; 1680 return response;
1681 } 1681 }