I tried to use http HEAD method and it would hand
async_std::task::block_on(async move {
let res = surf::head("http://example.com").await.expect("surf");
println!("{:?}", res);
});
And if i replace http with https, it would give me exception
thread 'test_header' panicked at 'surf: ResponseBodyError(None): unknown error', http/src/lib.rs:84:19
If I replace head with get, all things goes well.
[dependencies]
surf = "2.0.0-alpha.4"
async-std = "1.6.3"
I tried to use http HEAD method and it would hand
And if i replace http with https, it would give me exception
If I replace
headwithget, all things goes well.