From cde2518b860f7d914ba0ad4cb1cd4eaccc4ee32f Mon Sep 17 00:00:00 2001 From: Anton Sizikov Date: Thu, 10 Dec 2015 08:53:12 +0100 Subject: [PATCH] String comparison specified for content type --- Octokit/Exceptions/ApiException.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Octokit/Exceptions/ApiException.cs b/Octokit/Exceptions/ApiException.cs index bbbae6a3..ad3b93d8 100644 --- a/Octokit/Exceptions/ApiException.cs +++ b/Octokit/Exceptions/ApiException.cs @@ -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; }