Skip to content

[MAINT]: Update default Accept header #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Octokit.GraphQL.Core.UnitTests/ConnectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static async Task Run_Specifies_Cancellation_Token()
}

[Theory]
[InlineData("Accept", "application/vnd.github.antiope-preview+json")]
[InlineData("Accept", "application/vnd.github+json")]
[InlineData("Authorization", "bearer my-token")]
[InlineData("User-Agent", "Octokit.GraphQL.Core.Tests/1.0.0")]
public static async Task Run_Specifies_Http_Headers(string name, string expected)
Expand Down
2 changes: 1 addition & 1 deletion src/Octokit.GraphQL.Core/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Octokit.GraphQL
/// </summary>
public class Connection : IConnection
{
private const string DefaultMediaType = "application/vnd.github.antiope-preview+json";
private const string DefaultMediaType = "application/vnd.github+json";

/// <summary>
/// Gets the address of the GitHub GraphQL API.
Expand Down
Loading