From: Harmon Date: Thu, 28 Jan 2021 17:53:30 +0000 (-0600) Subject: Stop manually setting Host header in APIMethod X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4ebe76e9e383e45c0c6ab89aa263642a2a042625;p=tweepy.git Stop manually setting Host header in APIMethod --- diff --git a/tweepy/binder.py b/tweepy/binder.py index 2cfde89..2452433 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -71,11 +71,6 @@ def bind_api(**config): 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