From 357aa169dde246af370fc5d622a31cf8af2c8f5f Mon Sep 17 00:00:00 2001 From: devloop Date: Sun, 22 Sep 2024 14:19:31 +0200 Subject: [PATCH] crawler: put back header tuple type check --- wapitiCore/net/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wapitiCore/net/crawler.py b/wapitiCore/net/crawler.py index c83c05965..5e9e90776 100644 --- a/wapitiCore/net/crawler.py +++ b/wapitiCore/net/crawler.py @@ -273,7 +273,7 @@ async def async_request( if form.enctype and not form.is_multipart: form_headers = {"Content-Type": form.enctype} - if isinstance(headers, dict) and headers: + if isinstance(headers, (dict, httpx.Headers)) and headers: form_headers.update(headers) if form.referer: