1
0
mirror of https://github.com/bumi/blockstream_satellite synced 2025-06-15 17:28:14 +00:00

Add content type todo

This commit is contained in:
bumi 2019-02-08 22:23:45 +01:00
parent ccdbb94eaa
commit 2779c04952

View File

@ -34,7 +34,7 @@ module BlockstreamSatellite
options[:file] = File.open(path)
end
options[:bid] ||= options[:file].size * 51 # default price
options[:file] = UploadIO.new(options[:file], 'text/plain')
options[:file] = UploadIO.new(options[:file], 'text/plain') # TODO: get rid of this content type here
response = BlockstreamSatellite.client.post('order', options)
if response.success?
Order.new(response.body).tap { |o| o.file = options[:file] }