We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9fd5d3 commit d5f0179Copy full SHA for d5f0179
lib.go
@@ -32,6 +32,13 @@ func TestHTTPClient(options ...gokhttp_client.Option) (*http.Client, error) {
32
}
33
opts = append(opts, opt)
34
35
+ if os.Getenv("USE_WIRESHARK") == "true" {
36
+ opt, err := gokhttp_client.NewTLSKeyLoggingOptionToFile(os.Getenv("WIRESHARK_LOGFILE"))
37
+ if err != nil {
38
+ return nil, fmt.Errorf("gokhttp_client.NewTLSKeyLoggingOptionToFile: %w", err)
39
+ }
40
+ opts = append(opts, opt)
41
42
43
opts = append(opts, options...)
44
0 commit comments