Skip to content

Commit

Permalink
more consistency WRT to building iodata
Browse files Browse the repository at this point in the history
  • Loading branch information
benwilson512 committed Jun 26, 2015
1 parent 721ab68 commit 55509f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/ex_aws/auth.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ defmodule ExAws.Auth do
timestamp = now |> ExAws.Auth.Utils.amz_date
hashed_canonical_request = ExAws.Auth.Utils.hash_sha256(canonical_request)

"AWS4-HMAC-SHA256\n#{timestamp}\n#{scope}\n#{hashed_canonical_request}"
[
"AWS4-HMAC-SHA256", "\n",
timestamp, "\n",
scope, "\n",
hashed_canonical_request
] |> IO.iodata_to_binary
end

def sign_with(string_to_sign, signing_key) do
Expand Down

0 comments on commit 55509f1

Please sign in to comment.