File tree 1 file changed +1
-10
lines changed
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,6 @@ macro_rules! test {
235
235
inner: hyper:: client:: conn:: http1:: Builder ,
236
236
set_host: bool ,
237
237
http09_responses: bool ,
238
- http2_only: bool ,
239
238
}
240
239
241
240
impl Builder {
@@ -244,7 +243,6 @@ macro_rules! test {
244
243
inner: hyper:: client:: conn:: http1:: Builder :: new( ) ,
245
244
set_host: true ,
246
245
http09_responses: false ,
247
- http2_only: false ,
248
246
}
249
247
}
250
248
@@ -260,13 +258,6 @@ macro_rules! test {
260
258
self . inner. http09_responses( val) ;
261
259
self
262
260
}
263
-
264
- // #[allow(unused)]
265
- // fn http2_only(&mut self, val: bool) -> &mut Self {
266
- // self.http2_only = val;
267
- // self.inner.http2_only(val);
268
- // self
269
- // }
270
261
}
271
262
272
263
impl std:: ops:: Deref for Builder {
@@ -292,7 +283,7 @@ macro_rules! test {
292
283
return Err ( Error :: UnsupportedVersion ) ;
293
284
}
294
285
295
- if req. version( ) == Version :: HTTP_2 && !builder . http2_only {
286
+ if req. version( ) == Version :: HTTP_2 {
296
287
return Err ( Error :: UnsupportedVersion ) ;
297
288
}
298
289
You can’t perform that action at this time.
0 commit comments