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
2e04094b
Commit
2e04094b
authored
Feb 24, 2015
by
Jean Michel Rouly
Browse files
https is important or something
@nander13
parent
bc165ca6
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/views.py
View file @
2e04094b
...
...
@@ -150,7 +150,7 @@ def view(request, short):
do not need to be logged in to view info.
"""
domain
=
"http://%s"
%
request
.
META
.
get
(
'HTTP_HOST'
)
+
"/"
domain
=
"http
s
://%s"
%
request
.
META
.
get
(
'HTTP_HOST'
)
+
"/"
url
=
get_object_or_404
(
URL
,
short__iexact
=
short
)
...
...
@@ -173,7 +173,7 @@ def my_links(request):
urls
=
URL
.
objects
.
filter
(
owner
=
request
.
user
)
domain
=
"http://%s"
%
request
.
META
.
get
(
'HTTP_HOST'
)
+
"/"
domain
=
"http
s
://%s"
%
request
.
META
.
get
(
'HTTP_HOST'
)
+
"/"
return
render
(
request
,
'my_links.html'
,
{
'urls'
:
urls
,
...
...
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