You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug RestResponse<T> always has a null Version.
To Reproduce
using RestSharp;varclient=new RestClient();varrequest=new RestRequest("https://dummyjson.com/products/1");varresponse=await client.ExecuteAsync(request);
Console.WriteLine($"Version {response.Version}");// Version 1.1varresponse2=await client.ExecuteAsync<object>(request);
Console.WriteLine($"Version {response2.Version}");// Version (null)
Expected behavior RestResponse<T> should have Version set.
Desktop (please complete the following information):
* Set Version to generic RestResponse
Fix#2196
* Alphabetically sort initialized properties of RestResponse
Sorting the properties alphabetically to improve code readability and makes it easier to locate specific properties during maintenance.
Describe the bug
RestResponse<T>
always has a null Version.To Reproduce
Expected behavior
RestResponse<T>
should have Version set.Desktop (please complete the following information):
Additional context
The version is not copied from the RestResponse in this method: https://github.com/restsharp/RestSharp/blob/dev/src/RestSharp/Response/RestResponse.cs#L35
The text was updated successfully, but these errors were encountered: