Skip to content

Commit

Permalink
Check for HTTP/2 promised requests
Browse files Browse the repository at this point in the history
  • Loading branch information
vfaronov committed Aug 2, 2017
1 parent 732dd1e commit 31593f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_real_mitmdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,5 @@ def test_http2_reverse(real_mitmdump): # pragma: no cover
# (notices 1277 and 1109), so we check only specific things.
assert (b'------------ request: GET https://nghttp2.org/\n'
b'C 1070 Missing User-Agent header\n') in real_mitmdump.report
# Promised requests
assert real_mitmdump.report.count(b'------------ request: GET ') > 1

0 comments on commit 31593f5

Please sign in to comment.