Skip to content

Commit fb62d4b

Browse files
author
Artem Abashev
committed
xAuth support fix.
1 parent 8763a56 commit fb62d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestSharp/Authenticators/OAuth1Authenticator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private string GetAuthorizationHeader(WebPairCollection parameters)
227227
var oathParameters = parameters.Where(parameter =>
228228
!parameter.Name.IsNullOrBlank() &&
229229
!parameter.Value.IsNullOrBlank() &&
230-
parameter.Name.StartsWith("oauth_")
230+
(parameter.Name.StartsWith("oauth_") || parameter.Name.StartsWith("x_auth_"))
231231
).ToList();
232232
foreach (var parameter in oathParameters)
233233
{

0 commit comments

Comments
 (0)