Skip to content

Commit e154a24

Browse files
authored
Fix HttpClient.Post error on repeated calls (#339)
1 parent 6b1f306 commit e154a24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nanoFramework.System.Net.Http/Http/HttpClientHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ protected internal override HttpResponseMessage Send(HttpRequestMessage request)
262262
{
263263
throw new HttpRequestException("An error occurred while sending the request", ex);
264264
}
265-
265+
266266
return CreateResponseMessage(wresponse, request);
267267
}
268268

@@ -304,7 +304,7 @@ private HttpWebRequest CreateWebRequest(HttpRequestMessage request)
304304
wr.Timeout = (int)_timeout.TotalMilliseconds;
305305
}
306306

307-
wr.SslProtocols = SslProtocols;
307+
wr.SslProtocols = _sslProtocols;
308308
wr.HttpsAuthentCert = _caCert;
309309

310310
if (ClientCertificateOptions == ClientCertificateOption.Manual)
@@ -384,7 +384,7 @@ internal void SetWebRequestTimeout(TimeSpan timeout)
384384

385385
internal void SetWebRequestSslProcol(SslProtocols sslProtocols)
386386
{
387-
SslProtocols = sslProtocols;
387+
_sslProtocols = sslProtocols;
388388
}
389389

390390
internal void SetWebRequestHttpAuthCert(X509Certificate certificate)

0 commit comments

Comments
 (0)