Skip to content

Commit e9b0154

Browse files
author
Fred Ross
committed
Changed HTTPConnection to HTTPSConnection in twitted/input.py
Twitter's sample stream is now available via HTTPS, not HTTP.
1 parent feb6127 commit e9b0154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/twitted/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def connect(self):
5353
'User-Agent': "twitted.py/0.1",
5454
'Accept': "*/*",
5555
}
56-
connection = httplib.HTTPConnection(TWITTER_STREAM_HOST)
56+
connection = httplib.HTTPSConnection(TWITTER_STREAM_HOST)
5757
connection.request("GET", TWITTER_STREAM_PATH, "", headers)
5858
response = connection.getresponse()
5959
if response.status != 200:

0 commit comments

Comments
 (0)