From f5509a1795de609c4c538146e0362684342f0322 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Thu, 14 Sep 2023 16:25:01 +0200 Subject: [PATCH] x --- internal/tutorial/netxlite/chapter07/README.md | 3 +-- internal/tutorial/netxlite/chapter07/main.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/tutorial/netxlite/chapter07/README.md b/internal/tutorial/netxlite/chapter07/README.md index 99cb2fb1cb..ecd359814d 100644 --- a/internal/tutorial/netxlite/chapter07/README.md +++ b/internal/tutorial/netxlite/chapter07/README.md @@ -81,11 +81,10 @@ a single request using the given TLS conn. uses a cleartext TCP connection. In the next chapter we'll see how to do the same using QUIC.) -```Go - TODO(https://github.com/ooni/probe/issues/2534): here we're using the QUIRKY netxlite.NewHTTPTransport function, but we can probably avoid using it, given that this code is not using tracing and does not care about those quirks. +```Go clnt := &http.Client{Transport: netxlite.NewHTTPTransport( log.Log, netxlite.NewNullDialer(), netxlite.NewSingleUseTLSDialer(conn.(netxlite.TLSConn)), diff --git a/internal/tutorial/netxlite/chapter07/main.go b/internal/tutorial/netxlite/chapter07/main.go index 27e6167059..60ac559eeb 100644 --- a/internal/tutorial/netxlite/chapter07/main.go +++ b/internal/tutorial/netxlite/chapter07/main.go @@ -82,11 +82,10 @@ func main() { // uses a cleartext TCP connection. In the next chapter we'll // see how to do the same using QUIC.) // - // ```Go - // // TODO(https://github.com/ooni/probe/issues/2534): here we're using the QUIRKY netxlite.NewHTTPTransport // function, but we can probably avoid using it, given that this code is // not using tracing and does not care about those quirks. + // ```Go clnt := &http.Client{Transport: netxlite.NewHTTPTransport( log.Log, netxlite.NewNullDialer(), netxlite.NewSingleUseTLSDialer(conn.(netxlite.TLSConn)),