diff options
author | Ryan Cragun <me@ryan.ec> | 2017-04-25 10:24:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 10:24:26 -0700 |
commit | 4e052e597207e50e3ad95340db0ef19bcba88632 (patch) | |
tree | f88f26a2fd3e4416aa289dcc1113c2a8ffc4ae1c /lib/mixlib/authentication | |
parent | af56608f394035d7aef8077112f1ec5c93110d80 (diff) | |
parent | 7f02c024fe39308daff5aa8cb06f0ac8807844f2 (diff) | |
download | mixlib-authentication-4e052e597207e50e3ad95340db0ef19bcba88632.tar.gz |
Merge pull request #24 from chef/ryan/fix-constant-lookup
Fix SignedObject::DEFAULT_SERVER_API_VERSION constant scope
Diffstat (limited to 'lib/mixlib/authentication')
-rw-r--r-- | lib/mixlib/authentication/signedheaderauth.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mixlib/authentication/signedheaderauth.rb b/lib/mixlib/authentication/signedheaderauth.rb index 3119c87..2d49ad1 100644 --- a/lib/mixlib/authentication/signedheaderauth.rb +++ b/lib/mixlib/authentication/signedheaderauth.rb @@ -267,6 +267,7 @@ module Mixlib SigningObject = Struct.new(:http_method, :path, :body, :host, :timestamp, :user_id, :file, :proto_version, :headers) do + include SignedHeaderAuth def proto_version @@ -280,7 +281,7 @@ module Mixlib if key self[:headers][key] else - SignedHeaderAuth::DEFAULT_SERVER_API_VERSION + DEFAULT_SERVER_API_VERSION end end end |