From c83c908afb53a796e12e13b11d4dbfa26064410f Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 22 Oct 2013 10:28:27 +0300 Subject: [PATCH] Return HTTPS URLs in API responses --- dpaste/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpaste/views.py b/dpaste/views.py index d65628d..2b96cd3 100644 --- a/dpaste/views.py +++ b/dpaste/views.py @@ -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)