lib/nightcrawler_swift/commands/upload.rb in nightcrawler_swift-0.9.0 vs lib/nightcrawler_swift/commands/upload.rb in nightcrawler_swift-0.10.0

- old
+ new

@@ -9,9 +9,12 @@ headers.merge!(cache_control: "public, max-age=#{max_age}", expires: expires(max_age)) if max_age content_encoding = opts[:content_encoding] || options.content_encoding headers.merge!(content_encoding: content_encoding.to_s) if content_encoding + custom_headers = opts[:custom_headers] + headers.merge!(custom_headers) if custom_headers + response = put "#{connection.upload_url}/#{path}", body: body, headers: headers [200, 201].include?(response.code) end private