File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ pub use error::AsyncHttpRangeReaderError;
5858/// ```rust
5959/// # use url::Url;
6060/// # use async_http_range_reader::{AsyncHttpRangeReader, AsyncHttpRangeReaderError};
61+ /// # use reqwest::header::HeaderMap;
6162/// async fn get_reader_cached(
6263/// url: Url,
6364/// ) -> Result<Option<AsyncHttpRangeReader>, AsyncHttpRangeReaderError> {
@@ -687,6 +688,7 @@ mod test {
687688 Client :: new ( ) ,
688689 server. url ( ) . join ( "andes-1.8.3-pyhd8ed1ab_0.conda" ) . unwrap ( ) ,
689690 check_method,
691+ HeaderMap :: default ( ) ,
690692 )
691693 . await
692694 . expect ( "Could not download range - did you run `git lfs pull`?" ) ;
@@ -781,6 +783,7 @@ mod test {
781783 Client :: new ( ) ,
782784 server. url ( ) . join ( "andes-1.8.3-pyhd8ed1ab_0.conda" ) . unwrap ( ) ,
783785 check_method,
786+ HeaderMap :: default ( ) ,
784787 )
785788 . await
786789 . expect ( "bla" ) ;
@@ -822,6 +825,7 @@ mod test {
822825 Client :: new ( ) ,
823826 server. url ( ) . join ( "not-found" ) . unwrap ( ) ,
824827 CheckSupportMethod :: Head ,
828+ HeaderMap :: default ( ) ,
825829 )
826830 . await
827831 . expect_err ( "expected an error" ) ;
You can’t perform that action at this time.
0 commit comments