async-h1 icon indicating copy to clipboard operation
async-h1 copied to clipboard

'internal error: missing mime' when echoing body without Content-Type

Open tirr-c opened this issue 5 years ago • 1 comments

async_h1::accept panics with the following endpoint and request:

|req| async move {
    let mut res = Response::new(StatusCode::Ok);
    res.set_body(req);
    Ok(res)
}
POST / HTTP/1.1
content-length: 0

tirr-c avatar Mar 07 '20 17:03 tirr-c

Related PR: http-rs/http-types#83

tirr-c avatar Mar 08 '20 14:03 tirr-c