Merge pull request #84 from Voulnet/patch-3
I have added the following lines to the function 'request' starting in l...
This commit is contained in:
commit
22fe97b432
1 changed files with 3 additions and 0 deletions
|
|
@ -289,6 +289,9 @@ class Twython(object):
|
||||||
|
|
||||||
# In case they want to pass a full Twitter URL
|
# In case they want to pass a full Twitter URL
|
||||||
# i.e. http://search.twitter.com/
|
# i.e. http://search.twitter.com/
|
||||||
|
# convert any http Twitter url into https, for the sake of user security
|
||||||
|
# only convert the protocol part, not all occurences of http://, in case users want to search that
|
||||||
|
endpoint = endpoint.replace('http://','https://',1)
|
||||||
if endpoint.startswith('http://'):
|
if endpoint.startswith('http://'):
|
||||||
url = endpoint
|
url = endpoint
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue