aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/message.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/http/message.py')
-rw-r--r--netlib/http/message.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/netlib/http/message.py b/netlib/http/message.py
index b6d846ba..b265ac4f 100644
--- a/netlib/http/message.py
+++ b/netlib/http/message.py
@@ -43,9 +43,6 @@ class MessageData(utils.Serializable):
class Message(utils.Serializable):
- def __init__(self, data):
- self.data = data
-
def __eq__(self, other):
if isinstance(other, Message):
return self.data == other.data
@@ -62,6 +59,7 @@ class Message(utils.Serializable):
@classmethod
def from_state(cls, state):
+ state["headers"] = Headers.from_state(state["headers"])
return cls(**state)
@property