From fb62d4b0fef480c44be8ebd1f1b57d392e0e19ef Mon Sep 17 00:00:00 2001 From: Artem Abashev Date: Sun, 19 Aug 2012 03:48:35 +0400 Subject: [PATCH] xAuth support fix. --- RestSharp/Authenticators/OAuth1Authenticator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RestSharp/Authenticators/OAuth1Authenticator.cs b/RestSharp/Authenticators/OAuth1Authenticator.cs index faac64aaa..fa5062ff2 100644 --- a/RestSharp/Authenticators/OAuth1Authenticator.cs +++ b/RestSharp/Authenticators/OAuth1Authenticator.cs @@ -227,7 +227,7 @@ private string GetAuthorizationHeader(WebPairCollection parameters) var oathParameters = parameters.Where(parameter => !parameter.Name.IsNullOrBlank() && !parameter.Value.IsNullOrBlank() && - parameter.Name.StartsWith("oauth_") + (parameter.Name.StartsWith("oauth_") || parameter.Name.StartsWith("x_auth_")) ).ToList(); foreach (var parameter in oathParameters) {