Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzimarev committed Nov 7, 2022
1 parent 79848da commit df07026
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: alexeyzimarev
github: restsharp
6 changes: 6 additions & 0 deletions docs/.idea/GitLink.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/RestSharp/Response/RestResponseBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public abstract class RestResponseBase {
/// <summary>
/// Whether or not the HTTP response status code indicates success and no other error occurred (deserialization, timeout, ...)
/// </summary>
public bool IsSuccessful { get => IsSuccessStatusCode && ResponseStatus == ResponseStatus.Completed; }
public bool IsSuccessful => IsSuccessStatusCode && ResponseStatus == ResponseStatus.Completed;

/// <summary>
/// Description of HTTP status returned
Expand Down
1 change: 1 addition & 0 deletions test/RestSharp.InteractiveTests/TwitterClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public TwitterAuthenticator(string baseUrl, string clientId, string clientSecret

protected override async ValueTask<Parameter> GetAuthenticationParameter(string accessToken) {
var token = string.IsNullOrEmpty(Token) ? await GetToken() : Token;
Token = token;
return new HeaderParameter(KnownHeaders.Authorization, token);
}

Expand Down

0 comments on commit df07026

Please sign in to comment.