let llgethttpheaders do case insensitive search, plus cosmetics

This commit is contained in:
UbitUmarov
2023-05-24 00:43:21 +01:00
parent 1a6b16d1c8
commit 2bd08a19d5
3 changed files with 40 additions and 54 deletions

View File

@@ -450,12 +450,12 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
public void StopHttpRequest(uint localID, UUID m_itemID)
{
List<UUID> toremove = new List<UUID>();
List<UUID> toremove = new();
lock (m_mainLock)
{
foreach (HttpRequestClass tmpReq in m_pendingRequests.Values)
{
if(tmpReq.ItemID == m_itemID)
if(m_itemID.Equals(tmpReq.ItemID))
{
tmpReq.Stop();
toremove.Add(tmpReq.ReqID);
@@ -467,7 +467,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
if (m_RequestsThrottle.TryGetValue(localID, out ThrottleData th))
{
if (th.control + m_primOwnerPerSec * (Util.GetTimeStamp() - th.lastTime) >= m_primBurst)
m_RequestsThrottle.TryRemove(localID, out ThrottleData dummy);
m_RequestsThrottle.TryRemove(localID, out _);
}
}