mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
replace HttpWebRequest by HttpClient on another place
This commit is contained in:
@@ -30,6 +30,7 @@ using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http.Headers;
|
||||
|
||||
namespace OpenSim.Framework.ServiceAuth
|
||||
{
|
||||
@@ -62,6 +63,12 @@ namespace OpenSim.Framework.ServiceAuth
|
||||
auth.AddAuthorization(headers);
|
||||
}
|
||||
|
||||
public void AddAuthorization(HttpRequestHeaders headers)
|
||||
{
|
||||
foreach (IServiceAuth auth in m_authentications)
|
||||
auth.AddAuthorization(headers);
|
||||
}
|
||||
|
||||
public bool Authenticate(string data)
|
||||
{
|
||||
return m_authentications.TrueForAll(a => a.Authenticate(data));
|
||||
|
||||
Reference in New Issue
Block a user