It's only a Type, not a Type Type

This commit is contained in:
Haacked
2015-01-16 14:40:04 -08:00
parent fa363b169f
commit cf27bf510a
+2 -2
View File
@@ -74,7 +74,7 @@ namespace Octokit.Internal
{
if (content != null)
{
contentType = GetContentMediaTypeType(responseMessage.Content);
contentType = GetContentMediaType(responseMessage.Content);
// We added support for downloading images. Let's constrain this appropriately.
if (contentType == null || !contentType.StartsWith("image/"))
@@ -137,7 +137,7 @@ namespace Octokit.Internal
return requestMessage;
}
static string GetContentMediaTypeType(HttpContent httpContent)
static string GetContentMediaType(HttpContent httpContent)
{
if (httpContent.Headers != null && httpContent.Headers.ContentType != null)
{