mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Eliminated several warnings
This commit is contained in:
@@ -139,10 +139,12 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
|
||||
return false;
|
||||
|
||||
// Check for policy and execute it if defined
|
||||
#pragma warning disable 0618
|
||||
if (ServicePointManager.CertificatePolicy != null)
|
||||
{
|
||||
return ServicePointManager.CertificatePolicy.CheckValidationResult (sp, certificate, Request, 0);
|
||||
}
|
||||
#pragma warning restore 0618
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -96,8 +96,10 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest.Tests
|
||||
{
|
||||
public string Response { get; set; }
|
||||
|
||||
#pragma warning disable 0618
|
||||
public TestHttpWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
||||
: base(serializationInfo, streamingContext) {}
|
||||
#pragma warning restore 0618
|
||||
|
||||
public override Stream GetResponseStream()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user