Merge pull request #10493 from jibees/10492-background-reports-background_reports-breaks-pdf-and-xlsx-file-download

Reports, `background_reports` feature toggle activated: Force writing file in binary mode
This commit is contained in:
Maikel
2023-03-01 10:00:11 +11:00
committed by GitHub

View File

@@ -19,7 +19,7 @@ class ReportJob < ActiveJob::Base
private
def write(result)
File.write(filename, result)
File.write(filename, result, mode: "wb")
end
def read_result