summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth2/OAuth2
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-23 09:06:14 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-23 09:06:14 -0700
commitbaef63e68ff40462a8be63b6fcb7ad6265b247b6 (patch)
treed66316cf4b69042a14e80ea6a60d1085a23d054a /src/DotNetOpenAuth.OAuth2/OAuth2
parent5be8a1353fbf22a0bf9a3c414b6166c42e1c844d (diff)
downloadDotNetOpenAuth-baef63e68ff40462a8be63b6fcb7ad6265b247b6.zip
DotNetOpenAuth-baef63e68ff40462a8be63b6fcb7ad6265b247b6.tar.gz
DotNetOpenAuth-baef63e68ff40462a8be63b6fcb7ad6265b247b6.tar.bz2
Adds a cookie delegating handler, fixes tests.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2/OAuth2')
-rw-r--r--src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs b/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs
index aeba8d7..1871ad6 100644
--- a/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs
+++ b/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs
@@ -29,7 +29,7 @@ namespace DotNetOpenAuth.OAuth2 {
/// <summary>
/// The string "Basic ".
/// </summary>
- private const string HttpBasicAuthScheme = "Basic ";
+ private const string HttpBasicAuthScheme = "Basic";
/// <summary>
/// The delimiter between scope elements.
@@ -172,7 +172,7 @@ namespace DotNetOpenAuth.OAuth2 {
string concat = userName + ":" + password;
byte[] bits = HttpBasicEncoding.GetBytes(concat);
string base64 = Convert.ToBase64String(bits);
- headers.Authorization = new AuthenticationHeaderValue(HttpBasicAuthScheme.TrimEnd(), base64);
+ headers.Authorization = new AuthenticationHeaderValue(HttpBasicAuthScheme, base64);
}
/// <summary>