Skip to content

Fix outdated example paths in the docs - #8512

Merged
lups2000 merged 1 commit into
mitmproxy:mainfrom
protonnegativo:docs/fix-example-paths
Oct 25, 2026
Merged

lups2000 merged 1 commit into
mitmproxy:mainfrom
protonnegativo:docs/fix-example-paths

Conversation

@protonnegativo

Copy link
Copy Markdown
Contributor

Description

examples/simple/ and examples/complex/ were removed when the examples were restructured (08895e9), but a few places still point there:

  • _index.md: examples/simple/add_header.py → examples/addons/http-add-header.py (it adds a count header to every response, as the text says).
  • howto/transparent.md: examples/complex/full_transparency_shim.c → examples/contrib/full_transparency_shim.c, and the prose still called the file mitmproxy_shim.c.
  • The same stale paths in the examples/contrib/jsondump.py docstring and the build comment in full_transparency_shim.c.

I ran both mitmdump -s examples/addons/http-add-header.py and mitmdump -ns examples/addons/http-add-header.py -r srcfile -w dstfile and the header shows up. Docs and comments only, so no tests or changelog entry.

Checklist

  • I have updated tests where applicable.
  • I have added an entry to the CHANGELOG.

examples/simple/ and examples/complex/ no longer exist since the examples
were restructured. Point the docs, the jsondump.py docstring and the
shim's build comment to examples/addons/http-add-header.py and
examples/contrib/ instead.
@protonnegativo
protonnegativo marked this pull request as ready for review October 24, 2026 03:40

@lups2000 lups2000 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

@lups2000
lups2000 merged commit 0523782 into mitmproxy:main Oct 25, 2026
28 checks passed
lups2000 pushed a commit to lups2000/mitmproxy that referenced this pull request Oct 31, 2026
examples/simple/ and examples/complex/ no longer exist since the examples
were restructured. Point the docs, the jsondump.py docstring and the
shim's build comment to examples/addons/http-add-header.py and
examples/contrib/ instead.

Co-authored-by: protonnegativo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants