From 19ce7e200ba60403b5a823c60ac2b70b2113afe8 Mon Sep 17 00:00:00 2001 From: Tuan Anh Date: Thu, 27 Jul 2017 11:29:37 +0700 Subject: [PATCH] Fix Invalid Header Fix User-Agent --- maltrieve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maltrieve.py b/maltrieve.py index 37f04e5..02b9b2a 100755 --- a/maltrieve.py +++ b/maltrieve.py @@ -480,7 +480,7 @@ def main(): print "Completed source processing" - headers['User-Agent'] = cfg.useragent + headers['User-Agent'] = cfg.useragent["User-Agent"] malware_urls = set() for response in source_lists: if hasattr(response, 'status_code') and response.status_code == 200: