Merge pull request #702 from octokit/release-candidate

0.7.0 - All Torn Down
This commit is contained in:
Brendan Forster
2015-02-24 09:48:25 +10:30
5 changed files with 22 additions and 10 deletions
+5 -1
View File
@@ -11,6 +11,9 @@ namespace Octokit.Internal
/// </summary>
public class JsonHttpPipeline
{
private const string moondragonPreviewApiVersion = "application/vnd.github.moondragon+json; charset=utf-8";
private const string v3ApiVersion = "application/vnd.github.v3+json; charset=utf-8";
readonly IJsonSerializer _serializer;
public JsonHttpPipeline() : this(new SimpleJsonSerializer())
@@ -30,7 +33,8 @@ namespace Octokit.Internal
if (!request.Headers.ContainsKey("Accept"))
{
request.Headers["Accept"] = "application/vnd.github.v3+json; charset=utf-8";
request.Headers["Accept"] = String.Join(",", moondragonPreviewApiVersion, v3ApiVersion);
}
if (request.Method == HttpMethod.Get || request.Body == null) return;