Skip to content

Commit

Permalink
docs: remove outdated http/2 advice
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Aug 4, 2021
1 parent 4abd00a commit 7efefb7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/src/content/overview-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ The `map_remote` option lets you specify an arbitrary number of patterns that
define replacements within HTTP request URLs before they are sent to a server.
The substituted URL is fetched instead of the original resource
and the corresponding HTTP response is returned transparently to the client.
Note that if the original destination uses HTTP2, the substituted destination
needs to support HTTP2 as well, otherwise the substituted request may fail.
As a workaround you can start mitmproxy with the `--no-http2` flag to disable HTTP2.
`map_remote` patterns look like this:

```
Expand All @@ -169,8 +166,6 @@ The _separator_ is arbitrary, and is defined by the first character (`|` in the
#### Examples

Map all requests ending with `.jpg` to `https://placedog.net/640/480?random`.
Note that this might fail if the original HTTP request destination uses HTTP2 but the replaced
destination does not support HTTP2.

```
|.*\.jpg$|https://placedog.net/640/480?random
Expand Down

0 comments on commit 7efefb7

Please sign in to comment.