1
0
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:
Rob Ede
2022-02-07 02:30:26 +00:00
committed by GitHub
parent 7bb1f8d710
commit ab3615b8d5
8 changed files with 16 additions and 8 deletions

View File

@ -490,7 +490,6 @@ where
S::Future: 'static,
B: MessageBody + 'static,
B::Error: Into<Error>,
{
type Response = ServiceResponse<EitherBody<B>>;
type Error = Error;

View File

@ -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.