fix: ArchiveReadRequest.URIFetch stumbles over absent content length field

fix: region parameter in IRCBridgeModule XmlRpc was check for presence but not actually used...
0.6.0-stable
Dr Scofield 2008-11-04 16:17:27 +00:00
parent 702249358b
commit f57d1307ab
2 changed files with 3 additions and 1 deletions

View File

@ -234,6 +234,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
if (!requestData.ContainsKey("region"))
throw new Exception("No region name specified");
region = (string)requestData["region"];
foreach (RegionState rs in m_regions)
{

View File

@ -342,7 +342,8 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
if (response.ContentLength == 0)
throw new Exception(String.Format("{0} returned an empty file", uri.ToString()));
return new BufferedStream(file, (int) response.ContentLength);
// return new BufferedStream(file, (int) response.ContentLength);
return new BufferedStream(file, 1000000);
}