Skip to content

Commit

Permalink
remove content-disposition header when set (intercepting mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
devl00p committed Sep 20, 2022
1 parent a0b7c43 commit f80c4f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wapitiCore/net/intercepting_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ async def response(self, flow):
flow.response.status_code = 200
flow.response.content = b"Lasciate ogne speranza, voi ch'intrate."
flow.response.headers["content-type"] = "text/plain"
flow.response.headers.pop("content-disposition", "")
return

redirection = flow.response.headers.get("location", "")
Expand Down

0 comments on commit f80c4f3

Please sign in to comment.