mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 19:00:47 +00:00
Fixed the spacing
Fixed the spacing of comma and aligned the arguments.
This commit is contained in:
@@ -73,8 +73,9 @@ namespace Octokit.Internal
|
||||
|
||||
// We added support for downloading images,zip-files and application/octet-stream.
|
||||
// Let's constrain this appropriately.
|
||||
var binaryContentTypes = new[] {"application/zip"
|
||||
,"application/x-gzip",
|
||||
var binaryContentTypes = new[] {
|
||||
"application/zip" ,
|
||||
"application/x-gzip" ,
|
||||
"application/octet-stream"};
|
||||
|
||||
using (var content = responseMessage.Content)
|
||||
@@ -83,9 +84,8 @@ namespace Octokit.Internal
|
||||
{
|
||||
contentType = GetContentMediaType(responseMessage.Content);
|
||||
|
||||
if (contentType != null && (contentType.StartsWith("image/") ||
|
||||
binaryContentTypes
|
||||
.Any(item => item.Equals(contentType,StringComparison.OrdinalIgnoreCase))))
|
||||
if (contentType != null && (contentType.StartsWith("image/") || binaryContentTypes
|
||||
.Any(item => item.Equals(contentType, StringComparison.OrdinalIgnoreCase))))
|
||||
{
|
||||
responseBody = await responseMessage.Content.ReadAsByteArrayAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user