lib/skynet/upload.rb
# Default headers provided for uploading files,
# any argument provided is merged with the default values
Default headers provided for uploading files,
any argument provided is merged with the default values
Default headers provided for uploading files any argument provided is merged with the default values
def http_post_header(data = {})
    default_data = {
      headers: {
        'Accept' => 'application/octet-stream',
        'Content-Type' => 'application/octet-stream',
        'Transfer-Encoding' => 'gzip, chunked'
      }
    }
    default_data.merge(data) unless data.empty?
  end
def http_post_header ( data = { } ) default_data = { headers : { 'Accept' => 'application/octet-stream' , 'Content-Type' => 'application/octet-stream' , 'Transfer-Encoding' => 'gzip, chunked' } } default_data . merge ( data ) unless data . empty? end
Default headers provided for uploading files,
any argument provided is merged with the default values
Default headers provided for uploading files any argument provided is merged with the default values
data