From ace07e7e3c70cd1f099705d6d1989bc999ca7ca9 Mon Sep 17 00:00:00 2001 From: James Yale Date: Mon, 20 Dec 2021 19:18:00 +0000 Subject: [PATCH] Example specified incorrect header (#4997) * Example specified incorrect header * Add CHANGELOG entry reference the documentation update * fixup! Add CHANGELOG entry reference the documentation update --- CHANGELOG.md | 1 + docs/src/content/overview-features.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a07653b40..268574d7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ * Add fonts to asset filter (~a) (#4928, @elespike) * Fix bug that crashed when using `view.flows.resolve` (#4916, @rbdixon) * Fix a bug where `running()` is invoked twice on startup (#3584, @mhils) +* Correct documentation example for User-Agent header modification (#4997, @jamesyale) ## 28 September 2021: mitmproxy 7.0.4 diff --git a/docs/src/content/overview-features.md b/docs/src/content/overview-features.md index 46ab86507..ef90aa430 100644 --- a/docs/src/content/overview-features.md +++ b/docs/src/content/overview-features.md @@ -275,7 +275,7 @@ Set the `User-Agent` header to the data read from `~/useragent.txt` for all requ (existing `User-Agent` headers are replaced): ``` -/~q/Host/@~/useragent.txt +/~q/User-Agent/@~/useragent.txt ``` Remove existing `Host` headers from all requests: