Skip to content

Commit

Permalink
Use IO.binread instead of IO.read (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaeda-ks committed Dec 4, 2019
1 parent 1890ab9 commit 65632de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/twurl/oauth_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def perform_request_from_options(options, &block)
multipart_body << "\r\n"

if options.upload['base64']
enc = Base64.encode64(File.read(filename))
enc = Base64.encode64(File.binread(filename))
multipart_body << enc
else
multipart_body << File.read(filename)
multipart_body << File.binread(filename)
end
}

Expand Down

0 comments on commit 65632de

Please sign in to comment.