Skip to content

Commit

Permalink
Fix le swagger crawler
Browse files Browse the repository at this point in the history
Fix le problème des requetes PUT dans le module swagger en mode headless
  • Loading branch information
OussamaBeng committed Sep 3, 2024
1 parent 058b850 commit 6f92ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wapitiCore/net/intercepting_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def mitm_to_wapiti_request(mitm_request: MitmRequest) -> Optional[Request]:
# so we will consider values as simple fields but still send using multipart encoding
post_params.extend(decode_key_value_dict(mitm_request.multipart_form))

if not enctype and mitm_request.method == "POST":
if not enctype and mitm_request.method in ["POST", "PUT", "PATCH"]:
enctype = mitm_request.headers.get("Content-Type", "")

if enctype == "application/json":
Expand Down

0 comments on commit 6f92ac8

Please sign in to comment.