Skip to content

Commit 2375731

Browse files
authored
remove unused skip verify (#116)
closes #112
1 parent ed45225 commit 2375731

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

soap/soap.go

+5-14
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,14 @@ type basicAuth struct {
150150
}
151151

152152
type options struct {
153-
insecureSkipVerify bool
154-
tlsCfg *tls.Config
155-
auth *basicAuth
156-
timeout time.Duration
157-
httpHeaders map[string]string
153+
tlsCfg *tls.Config
154+
auth *basicAuth
155+
timeout time.Duration
156+
httpHeaders map[string]string
158157
}
159158

160159
var defaultOptions = options{
161-
insecureSkipVerify: false,
162-
timeout: time.Duration(30 * time.Second),
160+
timeout: time.Duration(30 * time.Second),
163161
}
164162

165163
// A Option sets options such as credentials, tls, etc.
@@ -186,13 +184,6 @@ func WithTimeout(t time.Duration) Option {
186184
}
187185
}
188186

189-
// WithInsecureSkipVerify is an Option to set insecure skip verify
190-
func WithInsecureSkipVerify(skipVerify bool) Option {
191-
return func(o *options) {
192-
o.insecureSkipVerify = skipVerify
193-
}
194-
}
195-
196187
// WithHTTPHeaders is an Option to set global HTTP headers for all requests
197188
func WithHTTPHeaders(headers map[string]string) Option {
198189
return func(o *options) {

0 commit comments

Comments
 (0)