removed unnecessary line wrapping in base64 for fgcp

This commit is contained in:
Adrian Cole 2012-12-01 11:07:31 -08:00
parent 6a20e00102
commit 60dca0a6ce
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}

View File

@ -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")