mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
db658b12ed
fixes #3072 closes #3254
15 lines
334 B
Python
15 lines
334 B
Python
from typing import List # noqa
|
|
|
|
from . import base
|
|
|
|
|
|
class ViewQuery(base.View):
|
|
name = "Query"
|
|
|
|
def __call__(self, data, **metadata):
|
|
query = metadata.get("query")
|
|
if query:
|
|
return "Query", base.format_pairs(query.items(multi=True))
|
|
else:
|
|
return "Query", base.format_text("")
|