aboutsummaryrefslogtreecommitdiff
path: root/src/Services/RhDatabaseClient.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-12-20 12:58:30 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-12-20 12:58:30 +0300
commita9ffc5510dfa295c449f0b10e6de7352b16c5ee2 (patch)
treed5322353a7a2ef92f9bb66e9ff53dff0e4bf755c /src/Services/RhDatabaseClient.cs
parent64d0abd00603cb9de22896a57db1b48421da1b38 (diff)
Move Serurity protocol changer
Diffstat (limited to 'src/Services/RhDatabaseClient.cs')
-rw-r--r--src/Services/RhDatabaseClient.cs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Services/RhDatabaseClient.cs b/src/Services/RhDatabaseClient.cs
index d71a6ba..73bce3d 100644
--- a/src/Services/RhDatabaseClient.cs
+++ b/src/Services/RhDatabaseClient.cs
@@ -16,11 +16,6 @@ namespace RhSolutions.Services
{
string request = @"https://rh.cebotari.ru/api/search?query=" + line;
- ServicePointManager.SecurityProtocol =
- SecurityProtocolType.Tls12 |
- SecurityProtocolType.Tls11 |
- SecurityProtocolType.Tls;
-
string response = await httpClient.GetStringAsync(request);
var products = JsonConvert.DeserializeObject<IEnumerable<DbProduct>>(response);