Skip to content

Commit

Permalink
remove unused skip verify (#116)
Browse files Browse the repository at this point in the history
closes #112
  • Loading branch information
anjmao authored Dec 4, 2018
1 parent ed45225 commit 2375731
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions soap/soap.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,14 @@ type basicAuth struct {
}

type options struct {
insecureSkipVerify bool
tlsCfg *tls.Config
auth *basicAuth
timeout time.Duration
httpHeaders map[string]string
tlsCfg *tls.Config
auth *basicAuth
timeout time.Duration
httpHeaders map[string]string
}

var defaultOptions = options{
insecureSkipVerify: false,
timeout: time.Duration(30 * time.Second),
timeout: time.Duration(30 * time.Second),
}

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

// WithInsecureSkipVerify is an Option to set insecure skip verify
func WithInsecureSkipVerify(skipVerify bool) Option {
return func(o *options) {
o.insecureSkipVerify = skipVerify
}
}

// WithHTTPHeaders is an Option to set global HTTP headers for all requests
func WithHTTPHeaders(headers map[string]string) Option {
return func(o *options) {
Expand Down

0 comments on commit 2375731

Please sign in to comment.