Skip to content

Commit

Permalink
Stop manually setting Host header in APIMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jan 28, 2021
1 parent 70a78d7 commit 4ebe76e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tweepy/binder.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ def __init__(self, *args, **kwargs):
else:
self.host = api.host

# Manually set Host header to fix an issue in python 2.5
# or older where Host is set including the 443 port.
# This causes Twitter to issue 301 redirect.
# See Issue https://github.com/tweepy/tweepy/issues/12
self.headers['Host'] = self.host
# Monitoring rate limits
self._remaining_calls = None
self._reset_time = None
Expand Down

0 comments on commit 4ebe76e

Please sign in to comment.