lib/dor/services/client/metadata.rb in dor-services-client-6.29.0 vs lib/dor/services/client/metadata.rb in dor-services-client-6.30.0

- old
+ new

@@ -85,10 +85,10 @@ resp = connection.get do |req| req.url "#{base_path}/datastreams" end raise_exception_based_on_response!(resp, object_identifier) unless resp.success? - JSON.parse(resp.body).map { |params| Datastream.new(**params) } + JSON.parse(resp.body).map { |params| Datastream.new(**params.symbolize_keys!) } end # @param [String] dsid the identifier for the datastream # @return [String] the contents of the specified datastream # @raise [UnexpectedResponse] on an unsuccessful response from the server