Skip to content
Permalink
Browse files
AIRAVATA-3458 Add gzip compression to download
  • Loading branch information
machristie committed Apr 28, 2021
1 parent e02efcc commit 2f981eb2a033011b51d0c3259fa81b5677a6b55e
Showing 1 changed file with 2 additions and 0 deletions.
@@ -5,6 +5,7 @@
from django.core.exceptions import ObjectDoesNotExist
from django.http import FileResponse, Http404
from django.shortcuts import redirect
from django.views.decorators.gzip import gzip_page

from airavata_django_portal_sdk import user_storage

@@ -19,6 +20,7 @@ def download(request):


# TODO: moving this view out of REST API means losing access token based authentication
@gzip_page
@login_required
def download_file(request):
data_product_uri = request.GET.get('data-product-uri', '')

0 comments on commit 2f981eb

Please sign in to comment.