File: 1001_http1.patch

package info (click to toggle)
rust-hyper-rustls-0.24 0.24.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 348 kB
  • sloc: sh: 47; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: fix fence test requiring feature http2
Author: Jonas Smedegaard <dr@jones.dk>
Bug: https://github.com/tokio-rs/tls/issues/107
Last-Update: 2022-06-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/connector/builder.rs
+++ b/src/connector/builder.rs
@@ -292,7 +292,7 @@
     }
 
     #[test]
-    #[cfg(feature = "http1")]
+    #[cfg(all(feature = "http1", feature = "http2"))]
     #[should_panic(expected = "ALPN protocols should not be pre-defined")]
     fn test_reject_predefined_alpn() {
         let roots = rustls::RootCertStore::empty();