photo_mini_fb 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/photo_mini_fb.rb +1 -2
- metadata +2 -2
data/lib/photo_mini_fb.rb
CHANGED
|
@@ -3,7 +3,6 @@ require 'erb'
|
|
|
3
3
|
require 'json' unless defined? JSON
|
|
4
4
|
require 'socket'
|
|
5
5
|
require 'uri'
|
|
6
|
-
require 'open-uri'
|
|
7
6
|
require 'net/http'
|
|
8
7
|
|
|
9
8
|
module MiniFB
|
|
@@ -207,7 +206,7 @@ module MiniFB
|
|
|
207
206
|
end
|
|
208
207
|
|
|
209
208
|
def MiniFB.post_upload(filename, kwargs)
|
|
210
|
-
content =
|
|
209
|
+
content = open(filename, 'rb') { |f| f.read }
|
|
211
210
|
boundary = Digest::MD5.hexdigest(content)
|
|
212
211
|
header = {'Content-type' => "multipart/form-data, boundary=#{boundary}"}
|
|
213
212
|
|