This commit is contained in:
Maximilian Hils 2021-01-06 10:45:06 +01:00
parent 4909198da7
commit ff624d0b87
3 changed files with 4 additions and 3 deletions

View File

@ -55,8 +55,8 @@ def flowdetails(state, flow: mitmproxy.flow.Flow):
common.format_keyvals(parts, indent=4)
)
c = sc.certificate_list[0]
if c:
if sc.certificate_list:
c = sc.certificate_list[0]
text.append(urwid.Text([("head", "Server Certificate:")]))
parts = [
("Type", "%s, %s bits" % c.keyinfo),

Binary file not shown.

View File

@ -40,5 +40,6 @@ def console(monkeypatch):
def test_integration(tdata, console):
console.type(f":view.flows.load {tdata.path('mitmproxy/data/dumpfile-018.bin')}<enter>")
console.type(f":view.flows.load {tdata.path('mitmproxy/data/dumpfile-7.bin')}<enter>")
console.type("<enter><tab><tab>")
console.type("<space><tab><tab>") # view second flow