mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-24 07:33:07 +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