mitmproxy/mitmproxy/contentviews/query.py
Rajat Gupta db658b12ed fix query array
fixes #3072 
closes #3254
2018-12-03 22:05:59 +01:00

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("")