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

@@ -424,10 +424,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
*/
public static int ListInt(object element)
{
if(element is LSL_Integer linteger)
{
return (int)linteger;
}
if (element is LSL_Integer linteger)
return linteger.value;
return (int)element;
}
@@ -437,9 +435,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
public static string ListStr(object element)
{
if(element is LSL_String ls)
{
return ls.m_string;
}
return (string)element;
}
}