Browse Source

修改content_type

locky 2 years ago
parent
commit
6429290702
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AdminController/ServeManagementController.py

+ 1 - 1
AdminController/ServeManagementController.py

@@ -694,7 +694,7 @@ class serveManagement(View):
                     for index, value in enumerate(col_value_list):
                         wt_sheet.write(row_start, index, value)
                     row_start += 1
-            res = HttpResponse(content_type='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
+            res = HttpResponse(content_type='application/vnd.ms-excel')
             res['Content-Disposition'] = 'attachment; filename={}'.format(escape_uri_path(file.name))
             wt_book.save(res)
             return res