docs: remove outdated http/2 advice

This commit is contained in:
Maximilian Hils 2021-08-04 17:30:28 +02:00
parent 4abd00afab
commit 7efefb716e

View File

@ -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:
```
@ -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