mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 00:33:17 +00:00
Update Site.find_for_request to respect https
This commit is contained in:
parent
ee9297b445
commit
781aabad97
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class Site(models.Model):
|
|||
hostname, port = request.META['HTTP_HOST'].split(':')
|
||||
except ValueError:
|
||||
hostname = request.META['HTTP_HOST']
|
||||
port = '80' # FIXME do we want this default?
|
||||
port = '443' if request.is_secure() else '80'
|
||||
except KeyError:
|
||||
# explicit routing straight to the final except clause
|
||||
raise
|
||||
|
|
|
|||
Loading…
Reference in a new issue