mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 20:45:51 +00:00
Merge pull request #734 from octokit/release-candidate
0.7.2 - Can't Handle My Scale
This commit is contained in:
@@ -11,7 +11,6 @@ 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;
|
||||
@@ -34,7 +33,7 @@ namespace Octokit.Internal
|
||||
if (!request.Headers.ContainsKey("Accept"))
|
||||
{
|
||||
|
||||
request.Headers["Accept"] = String.Join(",", moondragonPreviewApiVersion, v3ApiVersion);
|
||||
request.Headers["Accept"] = v3ApiVersion;
|
||||
}
|
||||
|
||||
if (request.Method == HttpMethod.Get || request.Body == null) return;
|
||||
|
||||
Reference in New Issue
Block a user