gi_cat_driver 0.2.11 → 0.2.12
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 +2 -4
- metadata +1 -1
data/lib/gi_cat_driver.rb
CHANGED
@@ -19,9 +19,6 @@ module GiCatDriver
|
|
19
19
|
OPENSEARCH_NAMESPACE = { "opensearch" => "http://a9.com/-/spec/opensearch/1.1/" }
|
20
20
|
RELEVANCE_NAMESPACE = { "relevance" => "http://a9.com/-/opensearch/extensions/relevance/1.0/" }
|
21
21
|
|
22
|
-
@standard_headers = { :content_type => "application/xml" }
|
23
|
-
@authorization_headers = { :content_type => "*/*", :Accept => "application/xml" }
|
24
|
-
|
25
22
|
attr_accessor :base_url
|
26
23
|
|
27
24
|
def initialize( url, username, password )
|
@@ -29,7 +26,8 @@ module GiCatDriver
|
|
29
26
|
@admin_username = username
|
30
27
|
@admin_password = password
|
31
28
|
|
32
|
-
@
|
29
|
+
@standard_headers = { :content_type => "application/xml" }
|
30
|
+
@authorization_headers = { :content_type => "*/*", :Accept => "application/xml", :Authorization => self.basic_auth_string }
|
33
31
|
end
|
34
32
|
|
35
33
|
# Basic Authorization used in the request headers
|