1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

update to prost 0.11 (#279)

* updated to prost 0.11 and added application/x-protobuf

* updated derive-more, prost, futures-util versions

* updated Changelog and a small fix in Cargo.toml

* cargo fmt

* bumped version to 0.8.1

* removed version bump

* add back intentional patch versions

Co-authored-by: Ahmed Masud <ahmed.masud@saf.ai>
This commit is contained in:
Rob Ede
2022-08-24 18:07:13 +01:00
committed by GitHub
parent e61dbae860
commit 1e682e7a59
3 changed files with 7 additions and 3 deletions

View File

@ -172,7 +172,9 @@ pub struct ProtoBufMessage<T: Message + Default> {
impl<T: Message + Default> ProtoBufMessage<T> {
/// Create `ProtoBufMessage` for request.
pub fn new(req: &HttpRequest, payload: &mut Payload) -> Self {
if req.content_type() != "application/protobuf" {
if req.content_type() != "application/protobuf"
&& req.content_type() != "application/x-protobuf"
{
return ProtoBufMessage {
limit: 262_144,
length: None,