projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cf8518
)
Allow requests Session to determine Content-Type header in Stream.filter
author
Harmon
<Harmon758@gmail.com>
Fri, 22 Jan 2021 23:35:58 +0000
(17:35 -0600)
committer
Harmon
<Harmon758@gmail.com>
Fri, 22 Jan 2021 23:35:58 +0000
(17:35 -0600)
tweepy/streaming.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/streaming.py
b/tweepy/streaming.py
index 4a173c60231c43a645d9341aafca512b9ab8a13a..a664cd4784cd2c0f4d5f411b245c8520d99dcbd0 100644
(file)
--- a/
tweepy/streaming.py
+++ b/
tweepy/streaming.py
@@
-254,7
+254,6
@@
class Stream:
def filter(self, follow=None, track=None, threaded=False, locations=None,
stall_warnings=False, languages=None, filter_level=None):
body = {}
- self.session.headers['Content-type'] = "application/x-www-form-urlencoded"
if self.running:
raise TweepError('Stream object already connected!')
self.url = f'/{STREAM_VERSION}/statuses/filter.json'