Sfoglia il codice sorgente

[querystore] Light code re-styling of download API

Note: id is still a built-in
Romain 5 anni fa
parent
commit
5ce10a315d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      apps/jobbrowser/src/jobbrowser/api2.py

+ 1 - 1
apps/jobbrowser/src/jobbrowser/api2.py

@@ -204,6 +204,6 @@ def query_store_download_bundle(request, id=None):
   app = resource.get('api/data-bundle/' + id)
 
   response = FileResponse((app, 'rb'), content_type='application/octet-stream')
-  response['Content-Disposition'] = 'attachment; filename='+id+'.zip'
+  response['Content-Disposition'] = 'attachment; filename=' + id + '.zip'
 
   return response