Remove Stream.headers
authorHarmon <Harmon758@gmail.com>
Fri, 22 Jan 2021 23:32:39 +0000 (17:32 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 22 Jan 2021 23:32:39 +0000 (17:32 -0600)
tweepy/streaming.py

index 33e0454e5c85a182a161039584a2e3a2c45531dc..12a23a5973e39174ec811ebb1a3a4153c13b0826 100644 (file)
@@ -144,7 +144,6 @@ class Stream:
 
         self.verify = options.get("verify", True)
 
-        self.headers = options.get("headers") or {}
         self.new_session()
         self.retry_time = self.retry_time_start
         self.snooze_time = self.snooze_time_step
@@ -155,7 +154,6 @@ class Stream:
 
     def new_session(self):
         self.session = requests.Session()
-        self.session.headers = self.headers
 
     def _run(self, params=None, body=None):
         # Authenticate