/
githubmirror
/
scrapy
Обзор
Документация
Войти
/
githubmirror
/
scrapy
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/mockserver/mitm_proxy_addon.py
5 строк
264 B
Andrey Rakhmatullin
Cleanup/clarifications of proxy support and improvements for proxy tests (#7496)
12 май 2026, 15:45
Не верифицирован
12 май 2026, 15:45
7fc84d3
Код
Авторство
О чём код?
def response(flow) -> None: # add custom headers to be able to check that the request went through the proxy flow.response.headers["X-Via-Mitmproxy"] = "1" if flow.client_conn.tls_established: flow.response.headers["X-Via-Mitmproxy-TLS"] = "1"