summaryrefslogtreecommitdiff
path: root/lib/mixlib/authentication/signedheaderauth.rb
diff options
context:
space:
mode:
authorJeremiah Snapp <jeremiah.snapp@gmail.com>2022-04-07 12:21:47 -0400
committerGitHub <noreply@github.com>2022-04-07 12:21:47 -0400
commitcd14b7d85b87e68aaae03a763bed514730977a46 (patch)
tree7555b86b0bd484af026034eba2b44d3d3688654d /lib/mixlib/authentication/signedheaderauth.rb
parentee14aa7be4196f837954dbebc461e373249ffbb5 (diff)
parent0650db3ee1d33df1c8cf80bf93a30cd623fb6800 (diff)
downloadmixlib-authentication-cd14b7d85b87e68aaae03a763bed514730977a46.tar.gz
Merge pull request #59 from chef/poorndm/IPACK-100-Test-Ruby-3.1
Remove Ruby 2.4 support & Test Ruby 3.1
Diffstat (limited to 'lib/mixlib/authentication/signedheaderauth.rb')
-rw-r--r--lib/mixlib/authentication/signedheaderauth.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/authentication/signedheaderauth.rb b/lib/mixlib/authentication/signedheaderauth.rb
index dc2adf3..cfd7bfe 100644
--- a/lib/mixlib/authentication/signedheaderauth.rb
+++ b/lib/mixlib/authentication/signedheaderauth.rb
@@ -196,7 +196,7 @@ module Mixlib
# TODO: tim 2009-12-28: It'd be nice to just remove this special case,
# always sign the entire request body, using the expanded multipart
# body in the case of a file being include.
- @hashed_body ||= if file&.respond_to?(:read)
+ @hashed_body ||= if file.respond_to?(:read)
digester.hash_file(file, digest)
else
digester.hash_string(body, digest)