From 4ebe76e9e383e45c0c6ab89aa263642a2a042625 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 28 Jan 2021 11:53:30 -0600 Subject: [PATCH] Stop manually setting Host header in APIMethod --- tweepy/binder.py | 5 ----- 1 file changed, 5 deletions(-) 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 -- 2.25.1