diff --git a/Octokit/Http/JsonHttpPipeline.cs b/Octokit/Http/JsonHttpPipeline.cs index 81e0d7e2..3eea0d4e 100644 --- a/Octokit/Http/JsonHttpPipeline.cs +++ b/Octokit/Http/JsonHttpPipeline.cs @@ -44,8 +44,12 @@ namespace Octokit.Internal if (response.ContentType != null && response.ContentType.Equals("application/json", StringComparison.Ordinal)) { - var json = _serializer.Deserialize(response.Body); - response.BodyAsObject = json; + // simple json does not support the root node being empty. Will submit a pr but in the mean time.... + if (response.Body != "{}") + { + var json = _serializer.Deserialize(response.Body); + response.BodyAsObject = json; + } } } }