Skip to content

Commit

Permalink
Fixed proxy protocol if "https"
Browse files Browse the repository at this point in the history
  • Loading branch information
stasinopoulos committed Jun 8, 2016
1 parent e404677 commit accf4d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/injections/controller/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,11 @@ def check_http_s(url):
if urlparse.urlparse(url).scheme:
if menu.options.force_ssl and urlparse.urlparse(url).scheme != "https":
url = re.sub("\Ahttp:", "https:", url, re.I)
settings.PROXY_PROTOCOL = 'https'
else:
if menu.options.force_ssl:
url = "https://" + url
settings.PROXY_PROTOCOL = 'https'
else:
url = "http://" + url
return url
Expand Down
2 changes: 1 addition & 1 deletion src/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
AUTHOR = "Anastasios Stasinopoulos"
MAJOR = "1"
MINOR = "0"
COMMIT_ID = "0"
COMMIT_ID = "1"
VERSION = MAJOR + "." + MINOR + "." + COMMIT_ID
YEAR = "2014-2016"
AUTHOR_TWITTER = "@ancst"
Expand Down

0 comments on commit accf4d9

Please sign in to comment.