lib/runcible/resources/content.rb in runcible-1.0.5 vs lib/runcible/resources/content.rb in runcible-1.0.6

- old
+ new

@@ -48,11 +48,10 @@ # @param [String] upload_id the id of the upload_request returned by create_upload_request # @param [Numeric] offset offset for file assembly # @param [File] content content of the file being uploaded to the server # @return [RestClient::Response] none def upload_bits(upload_id, offset, content) - required = required_params(binding.send(:local_variables), binding) - call(:put, path("#{upload_id}/#{offset}/"), :payload => { :required => required }) + call(:put, path("#{upload_id}/#{offset}/"), :payload => content) end # Import into a repository # # @param [String] repo_id identifies the associated repository