Skip to content

method HEAD error #218

Description

@clouds56

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions