summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Cragun <me@ryan.ec>2017-04-25 10:24:26 -0700
committerGitHub <noreply@github.com>2017-04-25 10:24:26 -0700
commit4e052e597207e50e3ad95340db0ef19bcba88632 (patch)
treef88f26a2fd3e4416aa289dcc1113c2a8ffc4ae1c
parentaf56608f394035d7aef8077112f1ec5c93110d80 (diff)
parent7f02c024fe39308daff5aa8cb06f0ac8807844f2 (diff)
downloadmixlib-authentication-4e052e597207e50e3ad95340db0ef19bcba88632.tar.gz
Merge pull request #24 from chef/ryan/fix-constant-lookup
Fix SignedObject::DEFAULT_SERVER_API_VERSION constant scope
-rw-r--r--lib/mixlib/authentication/signedheaderauth.rb3
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