fix #4387
This commit is contained in:
parent
4909198da7
commit
ff624d0b87
|
@ -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.
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue