mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 02:05:39 +00:00
String comparison specified for content type
This commit is contained in:
@@ -192,7 +192,7 @@ namespace Octokit
|
||||
get
|
||||
{
|
||||
return HttpResponse != null
|
||||
&& !HttpResponse.ContentType.StartsWith("image/")
|
||||
&& !HttpResponse.ContentType.StartsWith("image/", StringComparison.OrdinalIgnoreCase)
|
||||
&& HttpResponse.Body is string
|
||||
? (string)HttpResponse.Body : string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user