mirror of https://github.com/apache/jclouds.git
removed unnecessary line wrapping in base64 for fgcp
This commit is contained in:
parent
6a20e00102
commit
60dca0a6ce
|
@ -205,8 +205,7 @@ public class RequestAuthenticator implements HttpRequestFilter, RequestSigner {
|
|||
|
||||
try {
|
||||
signer.update(stringToSign.getBytes(Charsets.UTF_8));
|
||||
signed = CryptoStreams.base64(signer.sign()).replace("\n", "\r\n");
|
||||
// signed = CryptoStreams.base64(signer.sign());
|
||||
signed = CryptoStreams.base64(signer.sign());
|
||||
} catch (SignatureException e) {
|
||||
throw new HttpException("error signing request", e);
|
||||
}
|
||||
|
|
|
@ -95,8 +95,7 @@ public class BaseFGCPRestApiExpectTest extends
|
|||
+ "&" + query
|
||||
+ "&Locale=en"
|
||||
+ "&AccessKeyId=R01ULTA5OjAwJjEyMzQ1Njc4OTAmMS4wJlNIQTF3aXRoUlNB"
|
||||
// + "&Signature=G2rGfLAkbq0IURQfXIWYxj3BnMGbjRk4KPnZLAze3Lt4SMMRt8lkjqKvR5Cm%2BnFpDN7J6IprVCCsIrRq5BqPeXT6xtWyb6qMNds2BAr1h%2FJePGs0UosOh2tgPUMSFlZwLVjgNyrSa2zeHA3AEHjF6H1jqcWXXqfCAD4SOHaNavk%3D");
|
||||
+ "&Signature=G2rGfLAkbq0IURQfXIWYxj3BnMGbjRk4KPnZLAze3Lt4SMMRt8lkjqKvR5Cm%2BnFpDN7J6IprVCCs%0D%0AIrRq5BqPeXT6xtWyb6qMNds2BAr1h%2FJePGs0UosOh2tgPUMSFlZwLVjgNyrSa2zeHA3AEHjF6H1j%0D%0AqcWXXqfCAD4SOHaNavk%3D");
|
||||
+ "&Signature=G2rGfLAkbq0IURQfXIWYxj3BnMGbjRk4KPnZLAze3Lt4SMMRt8lkjqKvR5Cm%2BnFpDN7J6IprVCCsIrRq5BqPeXT6xtWyb6qMNds2BAr1h%2FJePGs0UosOh2tgPUMSFlZwLVjgNyrSa2zeHA3AEHjF6H1jqcWXXqfCAD4SOHaNavk%3D");
|
||||
return HttpRequest
|
||||
.builder()
|
||||
.method("GET")
|
||||
|
|
Loading…
Reference in New Issue