cosmetics

This commit is contained in:
UbitUmarov
2026-03-15 18:22:50 +00:00
parent 0120e62250
commit da5f1b3f7e
18 changed files with 71 additions and 82 deletions

View File

@@ -1177,7 +1177,7 @@ namespace OpenSim.Framework.Servers.HttpServer
{
using (StreamReader reader = new StreamReader(requestStream, Encoding.UTF8))
{
var xmlDes = new XmlRpcRequestDeserializer();
XmlRpcRequestDeserializer xmlDes = new();
xmlRprcRequest = (XmlRpcRequest)xmlDes.Deserialize(reader);
}
}
@@ -1272,7 +1272,7 @@ namespace OpenSim.Framework.Servers.HttpServer
using (XmlTextWriter writer = new XmlTextWriter(outs, UTF8NoBOM))
{
writer.Formatting = Formatting.None;
var xmlrpcSer = new XmlRpcResponseSerializer();
XmlRpcResponseSerializer xmlrpcSer = new();
xmlrpcSer.Serialize(writer, xmlRpcResponse);
writer.Flush();
response.RawBuffer = outs.GetBuffer();
@@ -1314,7 +1314,7 @@ namespace OpenSim.Framework.Servers.HttpServer
{
using (StreamReader reader = new StreamReader(requestStream, Encoding.UTF8))
{
var xmlDes = new XmlRpcRequestDeserializer();
XmlRpcRequestDeserializer xmlDes = new();
xmlRprcRequest = (XmlRpcRequest)xmlDes.Deserialize(reader);
}
}
@@ -1406,7 +1406,7 @@ namespace OpenSim.Framework.Servers.HttpServer
using (XmlTextWriter writer = new XmlTextWriter(outs, UTF8NoBOM))
{
writer.Formatting = Formatting.None;
var xmlrpcSer = new XmlRpcResponseSerializer();
XmlRpcResponseSerializer xmlrpcSer = new();
xmlrpcSer.Serialize(writer, xmlRpcResponse);
writer.Flush();
response.RawBuffer = outs.GetBuffer();
@@ -1641,7 +1641,7 @@ namespace OpenSim.Framework.Servers.HttpServer
return false;
}
var searchquery = CleanSearchPath(path.AsSpan());
ReadOnlySpan<char> searchquery = CleanSearchPath(path.AsSpan());
lock (m_llsdHandlers)
{
@@ -1661,7 +1661,7 @@ namespace OpenSim.Framework.Servers.HttpServer
/// <returns>true if we have one, false if not</returns>
private bool DoWeHaveAHTTPHandler(string path)
{
var searchquery = CleanSearchPath(path.AsSpan());
ReadOnlySpan<char> searchquery = CleanSearchPath(path.AsSpan());
//m_log.DebugFormat("[BASE HTTP HANDLER]: Checking if we have an HTTP handler for {0}", searchquery);
lock (m_HTTPHandlers)
@@ -1688,7 +1688,7 @@ namespace OpenSim.Framework.Servers.HttpServer
// {0}/{1}/{2}
// where {0} isn't something we really control 100%
var searchquery = CleanSearchPath(path.AsSpan());
ReadOnlySpan<char> searchquery = CleanSearchPath(path.AsSpan());
// while the matching algorithm below doesn't require it, we're expecting a query in the form
//
@@ -1808,7 +1808,7 @@ namespace OpenSim.Framework.Servers.HttpServer
return false;
}
var searchquery = CleanSearchPath(path);
ReadOnlySpan<char> searchquery = CleanSearchPath(path);
string bestMatch = null;
bool nomatch = true;