mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
docs: remove outdated http/2 advice
This commit is contained in:
parent
4abd00afab
commit
7efefb716e
@ -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.
|
define replacements within HTTP request URLs before they are sent to a server.
|
||||||
The substituted URL is fetched instead of the original resource
|
The substituted URL is fetched instead of the original resource
|
||||||
and the corresponding HTTP response is returned transparently to the client.
|
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:
|
`map_remote` patterns look like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -169,8 +166,6 @@ The _separator_ is arbitrary, and is defined by the first character (`|` in the
|
|||||||
#### Examples
|
#### Examples
|
||||||
|
|
||||||
Map all requests ending with `.jpg` to `https://placedog.net/640/480?random`.
|
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
|
|.*\.jpg$|https://placedog.net/640/480?random
|
||||||
|
Loading…
Reference in New Issue
Block a user