Use binary mode for trace files
We don't want to try and do any enoding conversions (or indeed any newline conversions) on uploaded trace files.
This commit is contained in:
parent
6b86b716d1
commit
cb6eb65466
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ private
|
|||
filename = "/tmp/#{rand}"
|
||||
|
||||
# ...and save the uploaded file to that location
|
||||
File.open(filename, "w") { |f| f.write(file.read) }
|
||||
File.open(filename, "wb") { |f| f.write(file.read) }
|
||||
|
||||
# Create the trace object, falsely marked as already
|
||||
# inserted to stop the import daemon trying to load it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue