diff --git a/dpkt/http.py b/dpkt/http.py index 6e91fdf5..42e12404 100644 --- a/dpkt/http.py +++ b/dpkt/http.py @@ -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):