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:
parent
ccdbb94eaa
commit
2779c04952
@ -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] }
|
||||
|
Loading…
x
Reference in New Issue
Block a user