remove trailing \r\n that causes problems

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@934298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Asankha Chamath Perera 2010-04-15 06:55:00 +00:00
parent 6054dd897d
commit de692aea08
1 changed files with 1 additions and 2 deletions

View File

@ -95,8 +95,7 @@ public class AWSScheme implements AuthScheme {
String signature = calculateRFC2104HMAC(toSign.toString(), credentials.getPassword());
String headerValue = NAME + " " + credentials.getUserPrincipal().getName() + ":"
+ signature;
String headerValue = NAME + " " + credentials.getUserPrincipal().getName() + ":" + signature.trim();
return new BasicHeader("Authorization", headerValue);
}