1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 12:45:41 +02:00

Fix panic on unknown content encoding

This commit is contained in:
Nikolay Kim
2018-03-11 14:50:13 -07:00
parent fee1e255ac
commit 31fbbd3168
4 changed files with 8 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ pub trait Responder {
/// Either::A(
/// httpcodes::HttpBadRequest.with_body("Bad data"))
/// } else {
/// Either::B( // <- variant B
/// Either::B( // <- variant B
/// result(HttpResponse::Ok()
/// .content_type("text/html")
/// .body(format!("Hello!"))