mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Return HTTPS URLs in API responses
This commit is contained in:
parent
c711639bac
commit
c83c908afb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue