From df07026de44d4fe8fc777c6b9c5aaa07ae6ccb35 Mon Sep 17 00:00:00 2001 From: Alexey Zimarev Date: Mon, 7 Nov 2022 12:54:36 +0100 Subject: [PATCH] Small fixes --- .github/FUNDING.yml | 2 +- docs/.idea/GitLink.xml | 6 ++++++ src/RestSharp/Response/RestResponseBase.cs | 2 +- test/RestSharp.InteractiveTests/TwitterClient.cs | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 docs/.idea/GitLink.xml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 4ed5ffc9b..129655002 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,3 @@ # These are supported funding model platforms -github: alexeyzimarev +github: restsharp diff --git a/docs/.idea/GitLink.xml b/docs/.idea/GitLink.xml new file mode 100644 index 000000000..009597cc2 --- /dev/null +++ b/docs/.idea/GitLink.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/src/RestSharp/Response/RestResponseBase.cs b/src/RestSharp/Response/RestResponseBase.cs index 1a0aa9b2e..498d3a7cf 100644 --- a/src/RestSharp/Response/RestResponseBase.cs +++ b/src/RestSharp/Response/RestResponseBase.cs @@ -68,7 +68,7 @@ public abstract class RestResponseBase { /// /// Whether or not the HTTP response status code indicates success and no other error occurred (deserialization, timeout, ...) /// - public bool IsSuccessful { get => IsSuccessStatusCode && ResponseStatus == ResponseStatus.Completed; } + public bool IsSuccessful => IsSuccessStatusCode && ResponseStatus == ResponseStatus.Completed; /// /// Description of HTTP status returned diff --git a/test/RestSharp.InteractiveTests/TwitterClient.cs b/test/RestSharp.InteractiveTests/TwitterClient.cs index 8659a2a6d..e3290ceaa 100644 --- a/test/RestSharp.InteractiveTests/TwitterClient.cs +++ b/test/RestSharp.InteractiveTests/TwitterClient.cs @@ -88,6 +88,7 @@ public TwitterAuthenticator(string baseUrl, string clientId, string clientSecret protected override async ValueTask GetAuthenticationParameter(string accessToken) { var token = string.IsNullOrEmpty(Token) ? await GetToken() : Token; + Token = token; return new HeaderParameter(KnownHeaders.Authorization, token); }