فهرست منبع

[querystore] Light code re-styling of download API

Note: id is still a built-in
Romain 5 سال پیش
والد
کامیت
5ce10a315d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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