Skip to content

Commit 56c8041

Browse files
CopilotF43nd1r
andauthored
Fix HTTP sender docs: use correct list syntax for Kotlin and Java (#1503)
* Initial plan * Fix HTTP sender docs: change arrayOf to listOf for tlsProtocols Co-authored-by: F43nd1r <10252708+F43nd1r@users.noreply.github.com> * Fix Java example: use Arrays.asList instead of listOf Co-authored-by: F43nd1r <10252708+F43nd1r@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: F43nd1r <10252708+F43nd1r@users.noreply.github.com>
1 parent 620f107 commit 56c8041

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/docs/Senders.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ httpSender {
5555
//defaults to false. Recommended if your backend supports it
5656
compress = false
5757
//defaults to all
58-
tlsProtocols = arrayOf(TLS.V1_3, TLS.V1_2, TLS.V1_1, TLS.V1)
58+
tlsProtocols = listOf(TLS.V1_3, TLS.V1_2, TLS.V1_1, TLS.V1)
5959
}
6060
```
6161

@@ -83,7 +83,7 @@ new HttpSenderConfigurationBuilder()
8383
//defaults to false. Recommended if your backend supports it
8484
.withCompress(false)
8585
//defaults to all
86-
.withTlsProtocols(arrayOf(TLS.V1_3, TLS.V1_2, TLS.V1_1, TLS.V1))
86+
.withTlsProtocols(Arrays.asList(TLS.V1_3, TLS.V1_2, TLS.V1_1, TLS.V1))
8787
.build()
8888
```
8989

0 commit comments

Comments
 (0)