From 56132ceaac963b411a322a4fbf488f52b54fa476 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 22 Oct 2020 20:58:17 +0200 Subject: [PATCH] Replace + by %20 in path --- lib/aws_auth/utils.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/aws_auth/utils.ex b/lib/aws_auth/utils.ex index bd188ce..4614423 100644 --- a/lib/aws_auth/utils.ex +++ b/lib/aws_auth/utils.ex @@ -22,6 +22,7 @@ defmodule AWSAuth.Utils do |> String.split("/") |> Enum.map(fn (segment) -> URI.encode_www_form(segment) end) |> Enum.join("/") + |> String.replace("+", "%20") "#{http_method}\n#{encoded_path}\n#{query_params}\n#{header_params}\n\n#{signed_header_params}\n#{hashed_payload}" end