diff --git a/HackRequests/HackRequests.py b/HackRequests/HackRequests.py index 2191a66..7b931fc 100644 --- a/HackRequests/HackRequests.py +++ b/HackRequests/HackRequests.py @@ -368,7 +368,7 @@ def __init__(self, rep, redirect, log, oldcookie=''): self.cookies = {} self.headers = _header_dict - self.header = self.rep.msg # response header + self.header = str(self.rep.msg) # response header self.log = log charset = self.rep.msg.get('content-type', 'utf-8') try: