User can press 'y' as well as 'Y' to confirm following redirection

pull/4/head
bloorq@gmail.com 2017-06-11 10:32:43 +01:00
parent fe56892f1e
commit 37be32c6ad
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Wordpress:
print notice("The remote host tried to redirect to: %s" % r.headers['location'])
user_input = str(raw_input("[?] Do you want to follow the redirection ? [Y]es [N]o, "))
if user_input == "Y":
if user_input.lower() == "y":
self.url = r.headers['location']
else: