Skip to content

Commit

Permalink
uri encode session token
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Nov 7, 2019
1 parent 92073bb commit d8917d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/AWSSigner/signer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class AWSSigner {
query += "&X-Amz-Expires=\(expires)"
query += "&X-Amz-SignedHeaders=\(signingData.signedHeaders)"
if let sessionToken = credentials.sessionToken {
query += "&X-Amz-Security-Token=\(sessionToken)"
query += "&X-Amz-Security-Token=\(sessionToken.uriEncode())"
}
// Split the string and sort to ensure the order of query strings is the same as AWS
query = query.split(separator: "&")
Expand Down

0 comments on commit d8917d8

Please sign in to comment.