Skip to content

Commit

Permalink
adding back a bit of code that got lost when doing merge conflict res…
Browse files Browse the repository at this point in the history
…olution
  • Loading branch information
brifordwylie committed Dec 14, 2020
1 parent 24edd9e commit 7010d6b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dpkt/http.py
Expand Up @@ -277,6 +277,11 @@ def test_parse_request():
assert r.uri == '/main/redirect/ab/1,295,,00.html'
assert r.body == b'sn=em&mn=dtest4&pw=this+is+atest&fr=true&login=Sign+in&od=www'
assert r.headers['content-type'] == 'application/x-www-form-urlencoded'
try:
Request(s[:60])
assert 'invalid headers parsed!'
except dpkt.UnpackError:
pass

def test_format_request():
r = Request()
Expand Down

0 comments on commit 7010d6b

Please sign in to comment.