From 68fccc9f04bea9ecf0d31fb5ca77559bb9174dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Tue, 10 Jan 2023 16:45:33 +0100 Subject: [PATCH] Test that Content-Disposition takes precedence over body --- tests/test_utils_response.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/test_utils_response.py b/tests/test_utils_response.py index ba202ac24..909e75d33 100644 --- a/tests/test_utils_response.py +++ b/tests/test_utils_response.py @@ -265,6 +265,23 @@ PRE_XTRACTMIME_SCENARIOS = ( ) for protocol in ("http", "https") ), + *( + ( + { + "url": f"{protocol}://example.com/a", + "body": b"