diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2022-06-02 13:42:55 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2022-06-02 13:42:55 +0100 |
| commit | fb8af574c03fd5099dac49cdf6dec8b83df36c48 (patch) | |
| tree | d0b9a16a89334fcaed05ad793c7358ac7367bc40 | |
| parent | b491d416c566b4aa287404cbc018b9cb3453e40d (diff) | |
Update README.md to use the preferred DialContext
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ func TestHTTP(t *testing.T) { srv := http.Server{} go srv.Serve(ln) - client := http.Client{Transport: &http.Transport{Dial: ln.Dial}} + client := http.Client{Transport: &http.Transport{DialContext: ln.DialContext}} // ... } |
