Skip to content

Commit

Permalink
Fix binmode
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Jan 21, 2025
1 parent 8062a55 commit 5f1f211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ export default {
switch (data.method) {
case 'ask':
case 'ask_string':
// Reset values since this dialog can be re-used
// Reset values since this dialog can be reused
this.ask.default = null
this.ask.answerRequired = true
this.ask.password = false
Expand Down
3 changes: 2 additions & 1 deletion openc3/lib/openc3/utilities/target_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def self.body(scope, name)
end
if resp && resp.body
if File.extname(name) == ".bin"
return resp.body.binmode.read
resp.body.binmode
return resp.body.read
else
return resp.body.read.force_encoding('UTF-8')
end
Expand Down

0 comments on commit 5f1f211

Please sign in to comment.