Skip to content

Commit

Permalink
Merge pull request #13 from hunkoi/h/12
Browse files Browse the repository at this point in the history
#12 Fix MAC generation for encoded URIs with special chars
  • Loading branch information
hiyosi committed Aug 12, 2022
2 parents 00fa49a + d32afe5 commit 7eb7975
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ func normalized(authType AuthType, uri, method, customHost string, option *Optio
}

path := u.Path
if u.RawPath != "" {
path = u.RawPath
}
if u.Query().Encode() != "" {
path = path + "?" + u.RawQuery
}
Expand Down

0 comments on commit 7eb7975

Please sign in to comment.