lib/parliament/request/open_search_request.rb in parliament-opensearch-0.1.1 vs lib/parliament/request/open_search_request.rb in parliament-opensearch-0.2.0
- old
+ new
@@ -22,10 +22,10 @@
# @see Parliament::BaseRequest#initialize
# @param [String] base_url the base url for the OpenSearch API description. (expected: http://example.com - without the trailing slash).
# @param [Hash] headers the headers being sent in the request.
# @param [Parliament::OpenSearch::Builder] builder the builder required to create the response.
def initialize(base_url: nil, headers: nil, builder: nil)
- @base_url = Parliament::Request::OpenSearchRequest.get_description(base_url) || self.class.base_url || ENV['OPENSEARCH_DESCRIPTION_URL']
+ @base_url = Parliament::Request::OpenSearchRequest.get_description(base_url) || self.class.base_url
@open_search_parameters = self.class.open_search_parameters
super(base_url: @base_url, headers: headers, builder: builder)
end