mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 11:05:56 +00:00
Change IResponse.Body to object
This removes the awkward Body and BodyAsObject property combo we used to have.
This commit is contained in:
@@ -26,7 +26,7 @@ public class HttpClientAdapterTests
|
||||
var response = await httpClient.Send(request, CancellationToken.None);
|
||||
|
||||
// Spot check some of dem bytes.
|
||||
var imageBytes = (byte[])response.BodyAsObject;
|
||||
var imageBytes = (byte[])response.Body;
|
||||
Assert.Equal(137, imageBytes[0]);
|
||||
Assert.Equal(80, imageBytes[1]);
|
||||
Assert.Equal(78, imageBytes[2]);
|
||||
|
||||
Reference in New Issue
Block a user