Skip to content

Commit fb9c67f

Browse files
committed
update
1 parent 0c743b8 commit fb9c67f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/GraphQL.AspNetCore3/GraphQLHttpMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ protected virtual MediaTypeHeaderValueMs SelectResponseContentType(HttpContext c
696696
return response;
697697
} else if (acceptHeaders.Count > 0) {
698698
// enumerate through each content type and see if it matches a supported content type
699-
// give priority to specific types, then to types with wildcards
699+
// give priority to quality, then specific types, then to types with wildcards
700700
var sortedAcceptHeaders = acceptHeaders
701701
.OrderByDescending(x => x.Quality ?? 1.0)
702702
.ThenBy(x => x.MatchesAllTypes ? 4 : x.MatchesAllSubTypes ? 3 : x.MatchesAllSubTypesWithoutSuffix ? 2 : 1);

0 commit comments

Comments
 (0)