Skip to content

Commit

Permalink
Support http response code with no status message
Browse files Browse the repository at this point in the history
  • Loading branch information
gr committed Apr 1, 2015
1 parent 4fa3404 commit 5a69a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scapy_http/http.py
Expand Up @@ -206,7 +206,7 @@ def guess_payload_class(self, payload):
if result:
return HTTPRequest
else:
prog = re.compile(r"^HTTP/\d\.\d \d\d\d .+?$")
prog = re.compile(r"^HTTP/\d\.\d \d\d\d .*$")
result = prog.match(req)
if result:
return HTTPResponse
Expand Down

0 comments on commit 5a69a2b

Please sign in to comment.