diff options
| author | mo <mo@mokhan.ca> | 2018-05-07 15:52:33 -0600 |
|---|---|---|
| committer | mo <mo@mokhan.ca> | 2018-05-07 15:52:33 -0600 |
| commit | 94930e58756679db7803e7fd59664f696689388d (patch) | |
| tree | abd4616f139456c5021fc56e8a861ff62aba804c /lib/net/hippie/client.rb | |
| parent | 84dc2be02ec86ebda02a6120bcc31e63048bc606 (diff) | |
allow clients to override the default headers.v0.1.4
Diffstat (limited to 'lib/net/hippie/client.rb')
| -rw-r--r-- | lib/net/hippie/client.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb index d85096e..9b810b0 100644 --- a/lib/net/hippie/client.rb +++ b/lib/net/hippie/client.rb @@ -9,12 +9,13 @@ module Net def initialize( certificate: nil, + headers: DEFAULT_HEADERS, key: nil, - passphrase: nil, - mapper: JsonMapper.new + mapper: JsonMapper.new, + passphrase: nil ) @certificate = certificate - @default_headers = DEFAULT_HEADERS + @default_headers = headers @key = key @mapper = mapper end |
