Fix compilation with change from poem 1.2.x
This commit is contained in:
parent
6949bad811
commit
3d578ba3a4
|
@ -30,7 +30,7 @@ impl<'a> FromRequest<'a> for GraphQLProtocol {
|
|||
.find_map(|p| WebSocketProtocols::from_str(p.trim()).ok())
|
||||
})
|
||||
.map(Self)
|
||||
.ok_or_else(|| Error::new_with_status(StatusCode::BAD_REQUEST))
|
||||
.ok_or_else(|| Error::from_status(StatusCode::BAD_REQUEST))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user