diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d7f216..06024b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ adheres to [Semantic Versioning][semver]. ## [Unreleased] +[unreleased]: https://github.com/ameshkov/gocurl/compare/v1.3.0...HEAD + +## [1.3.0] - 2023-09-23 + ### Added * Added an option to use Post-Quantum secure algorithms for establishing TLS @@ -24,11 +28,15 @@ adheres to [Semantic Versioning][semver]. both `h2` and `http/1.1` in TLS ALPN extension and use the protocol selected by the server. ([#14][#14]) +[See changes][1.3.0changes]. + [#14]: https://github.com/ameshkov/gocurl/issues/14 [#15]: https://github.com/ameshkov/gocurl/issues/15 -[unreleased]: https://github.com/ameshkov/gocurl/compare/v1.2.0...HEAD +[1.3.0changes]: https://github.com/ameshkov/gocurl/compare/v1.2.0...v1.3.0 + +[1.3.0]: https://github.com/ameshkov/gocurl/releases/tag/v1.3.0 ## [1.2.0] - 2023-09-22 diff --git a/internal/client/cfcrypto/cfcrypto_test.go b/internal/client/cfcrypto/cfcrypto_test.go index de3af31..06f6225 100644 --- a/internal/client/cfcrypto/cfcrypto_test.go +++ b/internal/client/cfcrypto/cfcrypto_test.go @@ -72,7 +72,8 @@ func TestHandshake_encryptedClientHello(t *testing.T) { } func TestHandshake_postQuantum(t *testing.T) { - const domainName = "pq.cloudflareresearch.com" + const domainName = "cloudflare.com" + const path = "cdn-cgi/trace" out, err := output.NewOutput("", false) require.NoError(t, err) @@ -81,7 +82,7 @@ func TestHandshake_postQuantum(t *testing.T) { require.NoError(t, err) tlsConf := &tls.Config{ - ServerName: "pq.cloudflareresearch.com", + ServerName: domainName, NextProtos: []string{"http/1.1"}, } @@ -94,7 +95,7 @@ func TestHandshake_postQuantum(t *testing.T) { tlsConn, err := cfcrypto.Handshake(conn, tlsConf, nil, cfg, out) require.NoError(t, err) - u := fmt.Sprintf("https://%s/", domainName) + u := fmt.Sprintf("https://%s/%s", domainName, path) req, err := http.NewRequest(http.MethodGet, u, nil) require.NoError(t, err) @@ -115,5 +116,5 @@ func TestHandshake_postQuantum(t *testing.T) { require.NotEmpty(t, body) bodyStr := string(body) - require.Contains(t, bodyStr, "You are using X25519Kyber768Draft00") + require.Contains(t, bodyStr, "kex=X25519Kyber768Draft00") }