Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/open311/client/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def options
proxy: proxy,
ssl: {verify: false},
url: endpoint,
headers: headers,
}
end

Expand Down
3 changes: 3 additions & 0 deletions lib/open311/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module Configuration
:format,
:jurisdiction,
:proxy,
:headers,
:user_agent].freeze

VALID_FORMATS = [
Expand All @@ -22,6 +23,7 @@ module Configuration
DEFAULT_FORMAT = :xml
DEFAULT_JURISDICTION = nil
DEFAULT_PROXY = nil
DEFAULT_HEADERS = nil
DEFAULT_USER_AGENT = "Open311 Ruby Gem #{Open311::Version}".freeze

attr_accessor(*VALID_OPTIONS_KEYS)
Expand All @@ -46,6 +48,7 @@ def reset
self.jurisdiction = DEFAULT_JURISDICTION
self.proxy = DEFAULT_PROXY
self.user_agent = DEFAULT_USER_AGENT
self.headers = DEFAULT_HEADERS
end
end
end