aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/RegionInfo.cs
diff options
context:
space:
mode:
authorgareth2007-04-13 15:14:21 +0000
committergareth2007-04-13 15:14:21 +0000
commitdd5f4abdb9423dd767ccb1c8be310e40fdd1ad43 (patch)
treea9a3647fca57f49e00fed77006bd5379841f5828 /OpenSim.RegionServer/RegionInfo.cs
parentaaaaaaarrrrrrrrrggggghhhhhhhh why oh why? (diff)
downloadopensim-SC_OLD-dd5f4abdb9423dd767ccb1c8be310e40fdd1ad43.zip
opensim-SC_OLD-dd5f4abdb9423dd767ccb1c8be310e40fdd1ad43.tar.gz
opensim-SC_OLD-dd5f4abdb9423dd767ccb1c8be310e40fdd1ad43.tar.bz2
opensim-SC_OLD-dd5f4abdb9423dd767ccb1c8be310e40fdd1ad43.tar.xz
Fixed weird XML/HTTP bugs
Can now update a sim profile at startup automatically! W00t! Untested neighbours code (for sim crossings) Didn't drink any red bull today :( Used liquid guarana extract + cola
Diffstat (limited to 'OpenSim.RegionServer/RegionInfo.cs')
-rw-r--r--OpenSim.RegionServer/RegionInfo.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim.RegionServer/RegionInfo.cs b/OpenSim.RegionServer/RegionInfo.cs
index 9958f1a..abc674f 100644
--- a/OpenSim.RegionServer/RegionInfo.cs
+++ b/OpenSim.RegionServer/RegionInfo.cs
@@ -44,7 +44,8 @@ namespace OpenSim
44 //we really want to keep any server connection code out of here and out of the code code 44 //we really want to keep any server connection code out of here and out of the code code
45 // and put it in the server connection classes (those inheriting from IGridServer etc) 45 // and put it in the server connection classes (those inheriting from IGridServer etc)
46 string reqtext; 46 string reqtext;
47 reqtext = "<authkey>" + this.GridSendKey + "</authkey>"; 47 reqtext = "<Root>";
48 reqtext += "<authkey>" + this.GridSendKey + "</authkey>";
48 reqtext += "<sim>"; 49 reqtext += "<sim>";
49 reqtext += "<uuid>" + this.SimUUID.ToString() + "</uuid>"; 50 reqtext += "<uuid>" + this.SimUUID.ToString() + "</uuid>";
50 reqtext += "<regionname>" + this.RegionName + "</regionname>"; 51 reqtext += "<regionname>" + this.RegionName + "</regionname>";
@@ -54,6 +55,7 @@ namespace OpenSim
54 reqtext += "<region_locy>" + this.RegionLocY.ToString() + "</region_locy>"; 55 reqtext += "<region_locy>" + this.RegionLocY.ToString() + "</region_locy>";
55 reqtext += "<estate_id>1</estate_id>"; 56 reqtext += "<estate_id>1</estate_id>";
56 reqtext += "</sim>"; 57 reqtext += "</sim>";
58 reqtext += "</Root>";
57 59
58 byte[] reqdata = (new System.Text.ASCIIEncoding()).GetBytes(reqtext); 60 byte[] reqdata = (new System.Text.ASCIIEncoding()).GetBytes(reqtext);
59 61
@@ -67,7 +69,7 @@ namespace OpenSim
67 stOut.Close(); 69 stOut.Close();
68 70
69 WebResponse gridresp = GridSaveReq.GetResponse(); 71 WebResponse gridresp = GridSaveReq.GetResponse();
70 StreamReader stIn = new StreamReader(gridresp.GetResponseStream()); 72 StreamReader stIn = new StreamReader(gridresp.GetResponseStream(), Encoding.ASCII);
71 string GridResponse = stIn.ReadToEnd(); 73 string GridResponse = stIn.ReadToEnd();
72 stIn.Close(); 74 stIn.Close();
73 gridresp.Close(); 75 gridresp.Close();