mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
relax body bounds (#223)
This commit is contained in:
@ -1,8 +1,11 @@
|
||||
# Changes
|
||||
|
||||
## Unreleased - 2021-xx-xx
|
||||
- Relax body type bounds on middleware impl. [#223]
|
||||
- Update `actix-web` dependency to `4.0.0-rc.1`.
|
||||
|
||||
[#223]: https://github.com/actix/actix-extras/pull/223
|
||||
|
||||
|
||||
## 0.6.0-beta.8 - 2021-12-29
|
||||
- Minimum supported Rust version (MSRV) is now 1.54.
|
||||
|
@ -490,7 +490,6 @@ where
|
||||
S::Future: 'static,
|
||||
|
||||
B: MessageBody + 'static,
|
||||
B::Error: Into<Error>,
|
||||
{
|
||||
type Response = ServiceResponse<EitherBody<B>>;
|
||||
type Error = Error;
|
||||
|
@ -143,7 +143,6 @@ where
|
||||
S::Future: 'static,
|
||||
|
||||
B: MessageBody + 'static,
|
||||
B::Error: Into<Error>,
|
||||
{
|
||||
type Response = ServiceResponse<EitherBody<B>>;
|
||||
type Error = Error;
|
||||
@ -189,12 +188,19 @@ where
|
||||
mod tests {
|
||||
use actix_web::{
|
||||
dev::Transform,
|
||||
middleware::Compat,
|
||||
test::{self, TestRequest},
|
||||
App,
|
||||
};
|
||||
|
||||
use super::*;
|
||||
use crate::Cors;
|
||||
|
||||
#[test]
|
||||
fn compat_compat() {
|
||||
let _ = App::new().wrap(Compat::new(Cors::default()));
|
||||
}
|
||||
|
||||
#[actix_web::test]
|
||||
async fn test_options_no_origin() {
|
||||
// Tests case where allowed_origins is All but there are validate functions to run incase.
|
||||
|
Reference in New Issue
Block a user