Skip to content

Commit 65632de

Browse files
authored
Use IO.binread instead of IO.read (#110)
1 parent 1890ab9 commit 65632de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/twurl/oauth_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ def perform_request_from_options(options, &block)
9999
multipart_body << "\r\n"
100100

101101
if options.upload['base64']
102-
enc = Base64.encode64(File.read(filename))
102+
enc = Base64.encode64(File.binread(filename))
103103
multipart_body << enc
104104
else
105-
multipart_body << File.read(filename)
105+
multipart_body << File.binread(filename)
106106
end
107107
}
108108

0 commit comments

Comments
 (0)