mirror of
https://github.com/bumi/blockstream_satellite
synced 2025-08-20 01:59:23 +00:00
Add content type todo
This commit is contained in:
parent
ccdbb94eaa
commit
2779c04952
@ -34,7 +34,7 @@ module BlockstreamSatellite
|
|||||||
options[:file] = File.open(path)
|
options[:file] = File.open(path)
|
||||||
end
|
end
|
||||||
options[:bid] ||= options[:file].size * 51 # default price
|
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)
|
response = BlockstreamSatellite.client.post('order', options)
|
||||||
if response.success?
|
if response.success?
|
||||||
Order.new(response.body).tap { |o| o.file = options[:file] }
|
Order.new(response.body).tap { |o| o.file = options[:file] }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user