Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Commit 86365c3

Browse files
committed
typos, and add escapepath to URIs module
1 parent 15fab02 commit 86365c3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/AWS4AuthRequest.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ function request(::Type{AWS4AuthLayer{Next}},
3838
end
3939

4040

41-
ispathsafe(c::Char) = c == '/' || URIs.issafe(c)
42-
escape_path(path) = escapeuri(path, ispathsafe)
43-
44-
4541
function sign_aws4!(method::String,
4642
uri::URI,
4743
headers::Headers,
@@ -96,7 +92,7 @@ function sign_aws4!(method::String,
9692
# Create hash of canonical request...
9793
canonical_form = string(method, "\n",
9894
aws_service == "s3" ? uri.path
99-
: escape_path(uri.path), "\n",
95+
: escapepath(uri.path), "\n",
10096
escapeuri(query), "\n",
10197
join(sort(canonical_headers), "\n"), "\n\n",
10298
signed_headers, "\n",

0 commit comments

Comments
 (0)