gi_cat_driver 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gi_cat_driver/version.rb +1 -1
- data/lib/gi_cat_driver.rb +3 -1
- metadata +1 -1
data/lib/gi_cat_driver.rb
CHANGED
@@ -20,7 +20,7 @@ module GiCatDriver
|
|
20
20
|
RELEVANCE_NAMESPACE = { "relevance" => "http://a9.com/-/opensearch/extensions/relevance/1.0/" }
|
21
21
|
|
22
22
|
STANDARD_HEADERS = { :content_type => "application/xml" }
|
23
|
-
AUTHORIZATION_HEADERS = { :content_type => "*/*", :Accept => "application/xml"
|
23
|
+
AUTHORIZATION_HEADERS = { :content_type => "*/*", :Accept => "application/xml" }
|
24
24
|
|
25
25
|
attr_accessor :base_url
|
26
26
|
|
@@ -28,6 +28,8 @@ module GiCatDriver
|
|
28
28
|
@base_url = url.sub(/\/+$/, '')
|
29
29
|
@admin_username = username
|
30
30
|
@admin_password = password
|
31
|
+
|
32
|
+
AUTHORIZATION_HEADERS.merge({:Authorization => self.basic_auth_string})
|
31
33
|
end
|
32
34
|
|
33
35
|
# Basic Authorization used in the request headers
|