Skip to content

Commit

Permalink
Fixed HttpTransportVersion.Legacy selecting wrong Content-Type with m…
Browse files Browse the repository at this point in the history
…edia type ranges (#5865)
  • Loading branch information
tobias-tengler authored and michaelstaib committed Feb 21, 2023
1 parent ca162c9 commit 7efe212
Show file tree
Hide file tree
Showing 5 changed files with 409 additions and 698 deletions.
10 changes: 5 additions & 5 deletions src/HotChocolate/AspNetCore/src/AspNetCore/ContentType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ internal static class ContentType
{
private const string _utf8 = "charset=utf-8";
private const string _boundary = "boundary=\"-\"";
public const string GraphQL = $"{Types.Application}/{SubTypes.GraphQL};{_utf8}";
public const string Json = $"{Types.Application}/{SubTypes.Json};{_utf8}";
public const string MultiPartMixed = $"{Types.MultiPart}/{SubTypes.Mixed};{_boundary}";
public const string GraphQLResponse = $"{Types.Application}/{SubTypes.GraphQLResponse};{_utf8}";
public const string EventStream = $"{Types.Text}/{SubTypes.EventStream};{_utf8}";
public const string GraphQL = $"{Types.Application}/{SubTypes.GraphQL}; {_utf8}";
public const string Json = $"{Types.Application}/{SubTypes.Json}; {_utf8}";
public const string MultiPartMixed = $"{Types.MultiPart}/{SubTypes.Mixed}; {_boundary}";
public const string GraphQLResponse = $"{Types.Application}/{SubTypes.GraphQLResponse}; {_utf8}";
public const string EventStream = $"{Types.Text}/{SubTypes.EventStream}; {_utf8}";
public const string Html = $"{Types.Text}/{SubTypes.Html}";

private static readonly char[] _jsonArray =
Expand Down
Loading

0 comments on commit 7efe212

Please sign in to comment.