From 175d3719d276efc725597717a6128da651eb36e4 Mon Sep 17 00:00:00 2001 From: Buzz2d0 Date: Sat, 17 Aug 2019 20:07:20 +0800 Subject: [PATCH] fix: #8 - The response.header type is 'http.client.HTTPMessage', not a string. --- HackRequests/HackRequests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: