Skip to content

client.rb opens file in text mode for binary data #15

@phluid61

Description

@phluid61

File: client.rb:97

File.open(filename, 'w') {|f| f.write bytes }

bytes may contain binary data (images, gzipped content). Opening with 'w' (text mode) can mangle line endings on some platforms.

Fix: use 'wb' instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    minorLow-severity issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions