lib/archivesspace/client/request.rb in archivesspace-client-0.1.2 vs lib/archivesspace/client/request.rb in archivesspace-client-0.1.3
- old
+ new
@@ -24,11 +24,11 @@
@config = config
@method = method.downcase.to_sym
@path = path
@options = options
- @options[:headers] = options[:headers] ? default_headers(@method).merge(options[:headers]) : default_headers
+ @options[:headers] = options[:headers] ? default_headers(@method).merge(options[:headers]) : default_headers(@method)
@options[:verify] = config.verify_ssl
@options[:query] = {} unless options.has_key? :query
base_uri = (config.base_repo.nil? or config.base_repo.empty?) ? config.base_uri : "#{config.base_uri}/#{config.base_repo}"
self.class.base_uri base_uri
@@ -39,6 +39,6 @@
self.class.send method, "/#{path}", options
end
end
-end
\ No newline at end of file
+end