Skip to content

Commit

Permalink
Remove Stream.headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jan 22, 2021
1 parent 2266ddd commit d07af4e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tweepy/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def __init__(self, auth, listener, **options):

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
Expand All @@ -155,7 +154,6 @@ def __init__(self, auth, listener, **options):

def new_session(self):
self.session = requests.Session()
self.session.headers = self.headers

def _run(self, params=None, body=None):
# Authenticate
Expand Down

0 comments on commit d07af4e

Please sign in to comment.