We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2286d5e commit 325499dCopy full SHA for 325499d
build.rs
@@ -102,13 +102,13 @@ fn main() {
102
VERSION, download_filename
103
);
104
let mut downloaded_bytes = Vec::new();
105
+ let resp = ureq::get(&url).call();
106
+ assert_eq!(resp.status(), 200);
107
- let _size = ureq::get(&url)
- .call()
108
+ let _size = resp
109
.into_reader()
110
.read_to_end(&mut downloaded_bytes)
111
.unwrap();
-
112
let downloaded_hash = sha256::Hash::hash(&downloaded_bytes);
113
assert_eq!(expected_hash, downloaded_hash);
114
let d = GzDecoder::new(&downloaded_bytes[..]);
0 commit comments