Skip to content

Commit 868dd8e

Browse files
authored
Fix code snippet in documentation (#6411)
1 parent 6d1971c commit 868dd8e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/client-concepts/connection/connecting-to-elasticsearch-v8.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The fingerprint can be set by calling the `CertificateFingerprint` method on a `
4141

4242
[source,csharp]
4343
----
44-
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
44+
var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200"));
4545
4646
var settings = new ConnectionSettings(pool)
4747
.CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4");
@@ -60,7 +60,7 @@ you may begin by using the `elastic` user and the automatically generated passwo
6060

6161
[source,csharp]
6262
----
63-
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
63+
var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200"));
6464
6565
var settings = new ConnectionSettings(pool)
6666
.CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4")
@@ -83,7 +83,7 @@ Compatibility mode may also be enabled directly on `ConnectionSettings` by calli
8383

8484
[source,csharp]
8585
----
86-
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
86+
var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200"));
8787
8888
var settings = new ConnectionSettings(pool)
8989
.CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4")

tests/Tests/ClientConcepts/Certificates/WorkingWithCertificates.doc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public PkiApiTests(PkiCluster cluster, EndpointUsage usage) : base(cluster, usag
226226
*/
227227
[U] public void CertificateFingerprint()
228228
{
229-
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
229+
var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200"));
230230

231231
var settings = new ConnectionSettings(pool)
232232
.CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4");

tests/Tests/ClientConcepts/Connection/ConnectingToElasticsearchV8.doc.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ConnectingToElasticsearchV8
3838
*/
3939
[U] public void CertificateFingerprint()
4040
{
41-
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
41+
var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200"));
4242

4343
var settings = new ConnectionSettings(pool)
4444
.CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4");
@@ -58,7 +58,7 @@ [U] public void CertificateFingerprint()
5858
*/
5959
[U] public void BasicAuth()
6060
{
61-
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
61+
var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200"));
6262

6363
var settings = new ConnectionSettings(pool)
6464
.CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4")
@@ -82,7 +82,7 @@ [U] public void BasicAuth()
8282
*/
8383
[U] public void CompatibilityMode()
8484
{
85-
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
85+
var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200"));
8686

8787
var settings = new ConnectionSettings(pool)
8888
.CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4")

0 commit comments

Comments
 (0)