Support empty string as marker in flow.mark (#7192)

* Support empty string in flow.mark

"Un-set all marks" is implemented as `flow.mark @all false`

_MarkerType() coerces False into "", but this was previously unsupported.
This commit is contained in:
Blake Burkhart 2024-09-19 09:03:08 -05:00 committed by GitHub
parent ccb3ae5abe
commit 8ff173a0aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,8 @@
([#7139](https://github.com/mitmproxy/mitmproxy/pull/7139), @mhils)
- Fix a bug where mitmproxy would crash when receiving `STOP_SENDING` QUIC frames.
([#7119](https://github.com/mitmproxy/mitmproxy/pull/7119), @mhils)
- Fix error when unmarking all flows.
([#7192](https://github.com/mitmproxy/mitmproxy/pull/7192), @bburky)
- mitmproxy now officially supports Python 3.13.
([#6934](https://github.com/mitmproxy/mitmproxy/pull/6934), @mhils)
- Add HTTP3 support in HTTPS reverse-proxy mode

View File

@ -68,7 +68,7 @@ class Core:
Mark flows.
"""
updated = []
if marker not in emoji.emoji:
if not (marker == "" or marker in emoji.emoji):
raise exceptions.CommandError(f"invalid marker value")
for i in flows: