lib/amee/data_item_value.rb in amee-4.3.2 vs lib/amee/data_item_value.rb in amee-4.4.0

- old
+ new

@@ -173,10 +173,10 @@ options[:startDate] = options[:start_date].xmlschema options.delete(:start_date) end response = data_item.connection.post(data_item.full_path, options) - location = response['Location'].match("https??://.*?(/.*)")[1] + location = response.headers_hash['Location'].match("https??://.*?(/.*)")[1] if get_item == true get_options = {} get_options[:format] = format if format return AMEE::Data::ItemValue.get(data_item.connection, location) else