mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 14:49:20 +02:00
simplify h1 codec messages
This commit is contained in:
@ -40,7 +40,7 @@ fn test_simple() {
|
||||
.and_then(TakeItem::new().map_err(|_| ()))
|
||||
.and_then(|(req, framed): (_, Framed<_, _>)| {
|
||||
// validate request
|
||||
if let Some(h1::InMessage::MessageWithPayload(req)) = req {
|
||||
if let Some(h1::InMessage::Message { req, payload: _ }) = req {
|
||||
match ws::handshake(&req) {
|
||||
Err(e) => {
|
||||
// validation failed
|
||||
|
Reference in New Issue
Block a user