fixes for no-default-features
This commit is contained in:
@@ -175,6 +175,6 @@ pub(crate) fn connect_test(unit: &Unit) -> Result<Stream, Error> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "tls"))]
|
#[cfg(not(feature = "tls"))]
|
||||||
pub fn connect_https(unit: &Unit) -> Result<Stream, Error> {
|
pub(crate) fn connect_https(unit: &Unit) -> Result<Stream, Error> {
|
||||||
Err(Error::UnknownScheme(unit.url.scheme().to_string()))
|
Err(Error::UnknownScheme(unit.url.scheme().to_string()))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ use std::io::Read;
|
|||||||
use super::super::*;
|
use super::super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(feature = "tls")]
|
||||||
fn read_range() {
|
fn read_range() {
|
||||||
let resp = get("https://s3.amazonaws.com/foosrvr/bbb.mp4")
|
let resp = get("https://s3.amazonaws.com/foosrvr/bbb.mp4")
|
||||||
.set("Range", "bytes=1000-1999")
|
.set("Range", "bytes=1000-1999")
|
||||||
@@ -19,6 +20,7 @@ fn read_range() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(feature = "tls")]
|
||||||
fn agent_pool() {
|
fn agent_pool() {
|
||||||
let agent = agent();
|
let agent = agent();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user