dont use absolute url for upload, fixes #1939

This commit is contained in:
j 2013-12-10 15:38:52 +00:00
parent d7953540e5
commit d7d5008bbb

View file

@ -266,7 +266,7 @@ def firefogg_upload(request):
if f.item.rendered and f.selected:
Item.objects.filter(id=f.item.id).update(rendered=False)
response = {
'uploadUrl': request.build_absolute_uri('/api/upload/?id=%s&profile=%s' % (f.oshash, profile)),
'uploadUrl': '/api/upload/?id=%s&profile=%s' % (f.oshash, profile),
'url': request.build_absolute_uri('/%s' % f.item.itemId),
'result': 1
}