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:
@ -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,
|
||||
|
Reference in New Issue
Block a user