sferik / x-ruby

A Ruby interface to the X API.
MIT License
68 stars 13 forks source link

Ensure split chunks are written as binary #13

Closed pgib closed 6 months ago

pgib commented 6 months ago

This may be enviroment-specific, but using chunked_upload was throwing the following exception:

Encoding::UndefinedConversionError: "\x89" from ASCII-8BIT to UTF-8

A simple fix will ensure the chunked files are written as binary.

sferik commented 6 months ago

Thank you for this fix! I’ll push a new gem version that includes it shortly.