File tree 2 files changed +25
-1
lines changed
gix-transport/src/client/blocking_io/http
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ pub fn new() -> (
196
196
}
197
197
198
198
handle. ssl_verify_peer ( ssl_verify) ?;
199
+ handle. ssl_verify_host ( ssl_verify) ?;
199
200
200
201
if let Some ( http_version) = http_version {
201
202
let version = match http_version {
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ pub mod options {
120
120
121
121
/// Options to configure http requests.
122
122
// TODO: testing most of these fields requires a lot of effort, unless special flags to introspect ongoing requests are added.
123
- #[ derive( Default , Clone ) ]
123
+ #[ derive( Clone ) ]
124
124
pub struct Options {
125
125
/// Headers to be added to every request.
126
126
/// They are applied unconditionally and are expected to be valid as they occur in an HTTP request, like `header: value`, without newlines.
@@ -189,6 +189,29 @@ pub struct Options {
189
189
pub backend : Option < Arc < Mutex < dyn Any + Send + Sync + ' static > > > ,
190
190
}
191
191
192
+ impl Default for Options {
193
+ fn default ( ) -> Self {
194
+ Options {
195
+ extra_headers : vec ! [ ] ,
196
+ follow_redirects : Default :: default ( ) ,
197
+ low_speed_limit_bytes_per_second : 0 ,
198
+ low_speed_time_seconds : 0 ,
199
+ proxy : None ,
200
+ no_proxy : None ,
201
+ proxy_auth_method : Default :: default ( ) ,
202
+ proxy_authenticate : None ,
203
+ user_agent : None ,
204
+ connect_timeout : None ,
205
+ verbose : false ,
206
+ ssl_ca_info : None ,
207
+ ssl_version : None ,
208
+ ssl_verify : true ,
209
+ http_version : None ,
210
+ backend : None ,
211
+ }
212
+ }
213
+ }
214
+
192
215
/// The actual http client implementation, using curl
193
216
#[ cfg( feature = "http-client-curl" ) ]
194
217
pub type Impl = curl:: Curl ;
You can’t perform that action at this time.
0 commit comments