aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 7e4a5a0..3acb882 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -8688,7 +8688,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8688 8688
8689 Dictionary<string, string> httpHeaders = new Dictionary<string, string>(); 8689 Dictionary<string, string> httpHeaders = new Dictionary<string, string>();
8690 8690
8691 httpHeaders["X-SecondLife-Shard"] = "OpenSim"; 8691 string shard = "OpenSim";
8692 IConfigSource config = new IniConfigSource(Application.iniFilePath);
8693 if (config.Configs["Network"] != null)
8694 {
8695 shard = config.Configs["Network"].GetString("user_server_url", shard);
8696 shard = config.Configs["Network"].GetString("shard", shard);
8697 }
8698
8699 httpHeaders["X-SecondLife-Shard"] = shard;
8692 httpHeaders["X-SecondLife-Object-Name"] = m_host.Name; 8700 httpHeaders["X-SecondLife-Object-Name"] = m_host.Name;
8693 httpHeaders["X-SecondLife-Object-Key"] = m_itemID.ToString(); 8701 httpHeaders["X-SecondLife-Object-Key"] = m_itemID.ToString();
8694 httpHeaders["X-SecondLife-Region"] = string.Format("{0} ({1}, {2})", regionInfo.RegionName, regionInfo.RegionLocX, regionInfo.RegionLocY); 8702 httpHeaders["X-SecondLife-Region"] = string.Format("{0} ({1}, {2})", regionInfo.RegionName, regionInfo.RegionLocX, regionInfo.RegionLocY);