mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
Fix warning in pytest (#4803)
Escape backslashes in pydocs containing '\*' (markdown escape sequence). This removes the one warning I saw when running `pytest`: /mitmproxy/mitmproxy/http.py:97: DeprecationWarning: invalid escape sequence \*
This commit is contained in:
parent
35596bd5e4
commit
8c03f7bf8b
@ -98,7 +98,7 @@ class Headers(multidict.MultiDict): # type: ignore
|
|||||||
*Args:*
|
*Args:*
|
||||||
- *fields:* (optional) list of ``(name, value)`` header byte tuples,
|
- *fields:* (optional) list of ``(name, value)`` header byte tuples,
|
||||||
e.g. ``[(b"Host", b"example.com")]``. All names and values must be bytes.
|
e.g. ``[(b"Host", b"example.com")]``. All names and values must be bytes.
|
||||||
- *\*\*headers:* Additional headers to set. Will overwrite existing values from `fields`.
|
- *\\*\\*headers:* Additional headers to set. Will overwrite existing values from `fields`.
|
||||||
For convenience, underscores in header names will be transformed to dashes -
|
For convenience, underscores in header names will be transformed to dashes -
|
||||||
this behaviour does not extend to other methods.
|
this behaviour does not extend to other methods.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user