Return HTTPS URLs in API responses

This commit is contained in:
Marius Gedminas 2013-10-22 10:28:27 +03:00
parent c711639bac
commit c83c908afb

View file

@ -254,7 +254,7 @@ def snippet_api(request, enclose_quotes=True):
)
s.save()
response = 'http://dpaste.de%s' % s.get_absolute_url()
response = 'https://dpaste.de%s' % s.get_absolute_url()
if enclose_quotes:
return HttpResponse('"%s"' % response)
return HttpResponse(response)