summaryrefslogtreecommitdiff
path: root/lib/mixlib/authentication
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-03-15 11:20:11 -0700
committerGitHub <noreply@github.com>2021-03-15 11:20:11 -0700
commit2269feb2b74a792352cf9568cd58866e4fbb8ad5 (patch)
tree4853bf58b80e404d22270336bf7a0907dceb638f /lib/mixlib/authentication
parent0fd5b792f8f7eaf38bb5308ff015e59513242c61 (diff)
parent14bf1b5047ac4d4cafdc630908b17a8b20a451d0 (diff)
downloadmixlib-authentication-2269feb2b74a792352cf9568cd58866e4fbb8ad5.tar.gz
Merge pull request #55 from chef/regex_split
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/mixlib/authentication')
-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 c86c295..ffb6004 100644
--- a/lib/mixlib/authentication/signedheaderauth.rb
+++ b/lib/mixlib/authentication/signedheaderauth.rb
@@ -127,7 +127,7 @@ module Mixlib
}
signature = Base64.encode64(do_sign(rsa_key, digest, sign_algorithm, sign_version, use_ssh_agent)).chomp
- signature_lines = signature.split(/\n/)
+ signature_lines = signature.split("\n")
signature_lines.each_index do |idx|
key = "X-Ops-Authorization-#{idx + 1}"
header_hash[key] = signature_lines[idx]