Skip to content

Commit

Permalink
Code optimization thanks to saylenty's suggestion. (Fix a mistake on …
Browse files Browse the repository at this point in the history
…last commit)
  • Loading branch information
sunhao2014 committed Jul 4, 2015
1 parent 89bfd09 commit 6fadad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpkt/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def unpack(self, buf):
# (informational), 204 (no content), and 304 (not modified) responses
# MUST NOT include a message-body. All other responses do include a
# message-body, although it MAY be of zero length.
is_body_allowed = int(self.status) >= 200 and 204 != int(status) != 304
is_body_allowed = int(self.status) >= 200 and 204 != int(self.status) != 304
Message.unpack(self, f.read(), is_body_allowed)

def __str__(self):
Expand Down

0 comments on commit 6fadad2

Please # to comment.