diff options
author | Oren Hurvitz | 2015-07-31 18:13:39 +0300 |
---|---|---|
committer | Oren Hurvitz | 2015-07-31 18:13:39 +0300 |
commit | 14b4d8bad796527a05a5f5992d1a1df1c5c43e6f (patch) | |
tree | 8d8c3bc5b43fc6a9eb720ef9df685baba4de6fac /OpenSim/Region/CoreModules/Scripting | |
parent | XMLRPCModule now actually aborts the worker thread when requested (diff) | |
download | opensim-SC_OLD-14b4d8bad796527a05a5f5992d1a1df1c5c43e6f.zip opensim-SC_OLD-14b4d8bad796527a05a5f5992d1a1df1c5c43e6f.tar.gz opensim-SC_OLD-14b4d8bad796527a05a5f5992d1a1df1c5c43e6f.tar.bz2 opensim-SC_OLD-14b4d8bad796527a05a5f5992d1a1df1c5c43e6f.tar.xz |
Eliminated several warnings
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs index 8f6aa55..b1f3f9b 100644 --- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | |||
@@ -139,10 +139,12 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
139 | return false; | 139 | return false; |
140 | 140 | ||
141 | // Check for policy and execute it if defined | 141 | // Check for policy and execute it if defined |
142 | #pragma warning disable 0618 | ||
142 | if (ServicePointManager.CertificatePolicy != null) | 143 | if (ServicePointManager.CertificatePolicy != null) |
143 | { | 144 | { |
144 | return ServicePointManager.CertificatePolicy.CheckValidationResult (sp, certificate, Request, 0); | 145 | return ServicePointManager.CertificatePolicy.CheckValidationResult (sp, certificate, Request, 0); |
145 | } | 146 | } |
147 | #pragma warning restore 0618 | ||
146 | 148 | ||
147 | return true; | 149 | return true; |
148 | } | 150 | } |
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs index 28fd495..d22487e 100644 --- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs +++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/Tests/ScriptsHttpRequestsTests.cs | |||
@@ -96,8 +96,10 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest.Tests | |||
96 | { | 96 | { |
97 | public string Response { get; set; } | 97 | public string Response { get; set; } |
98 | 98 | ||
99 | #pragma warning disable 0618 | ||
99 | public TestHttpWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext) | 100 | public TestHttpWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext) |
100 | : base(serializationInfo, streamingContext) {} | 101 | : base(serializationInfo, streamingContext) {} |
102 | #pragma warning restore 0618 | ||
101 | 103 | ||
102 | public override Stream GetResponseStream() | 104 | public override Stream GetResponseStream() |
103 | { | 105 | { |