File tree 1 file changed +5
-14
lines changed
1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -150,16 +150,14 @@ type basicAuth struct {
150
150
}
151
151
152
152
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
158
157
}
159
158
160
159
var defaultOptions = options {
161
- insecureSkipVerify : false ,
162
- timeout : time .Duration (30 * time .Second ),
160
+ timeout : time .Duration (30 * time .Second ),
163
161
}
164
162
165
163
// A Option sets options such as credentials, tls, etc.
@@ -186,13 +184,6 @@ func WithTimeout(t time.Duration) Option {
186
184
}
187
185
}
188
186
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
-
196
187
// WithHTTPHeaders is an Option to set global HTTP headers for all requests
197
188
func WithHTTPHeaders (headers map [string ]string ) Option {
198
189
return func (o * options ) {
You can’t perform that action at this time.
0 commit comments