Skip to content

Commit

Permalink
crawler: put back header tuple type check
Browse files Browse the repository at this point in the history
  • Loading branch information
devl00p committed Sep 22, 2024
1 parent 7a0654e commit 357aa16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wapitiCore/net/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 357aa16

Please sign in to comment.