-
Notifications
You must be signed in to change notification settings - Fork 127
Open
http-rs/http-client
#97Labels
bugSomething isn't workingSomething isn't working
Description
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"Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working