Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
ec23ae96
Verified
Commit
ec23ae96
authored
Apr 25, 2017
by
David Haynes
🙆
Browse files
Force links to be listed with HTTPS
- add an "s" Closes
#113
parent
8c33f886
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/views.py
View file @
ec23ae96
...
...
@@ -42,7 +42,7 @@ def index(request):
return
render
(
request
,
'not_registered.html'
)
# Get the current domain info
domain
=
"%s://%s"
%
(
request
.
scheme
,
request
.
META
.
get
(
'HTTP_HOST'
))
+
"/"
domain
=
"%s
s
://%s"
%
(
request
.
scheme
,
request
.
META
.
get
(
'HTTP_HOST'
))
+
"/"
# Grab a list of all the URL's that are currently owned by the user
urls
=
URL
.
objects
.
filter
(
owner
=
request
.
user
.
registereduser
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment