Skip to content

Commit

Permalink
webapp: remove Host header from HTTP replay
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Jul 13, 2024
1 parent bcc73fc commit 70b2b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/templates/http-replay.py.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ r = s.{{ req.http_method | lower }}(
{%- endif %}
headers={
{%- for header in req.request_headers %}
{%- if (header.name | lower) not in ["connection", "content-length"] %}
{%- if (header.name | lower) not in ["connection", "content-length", "host"] %}
"{{ header.name }}": "{{ header.value }}",
{%- endif %}
{%- endfor %}
Expand Down

0 comments on commit 70b2b94

Please sign in to comment.