Skip to content

Commit

Permalink
fix(service_account): Use correct base64 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
dermesser committed Sep 28, 2016
1 parent 8aa31e4 commit b143033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const GOOGLE_RS256_HEAD: &'static str = "{\"alg\":\"RS256\",\"typ\":\"JWT\"}";

// Encodes s as Base64
fn encode_base64<T: AsRef<[u8]>>(s: T) -> String {
base64::encode(s.as_ref())
base64::encode_mode(s.as_ref(), base64::Base64Mode::UrlSafe)
}

// Calculates the SHA256 hash.
Expand Down

0 comments on commit b143033

Please sign in to comment.