You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Samples.Server.Tests/ResponseTests.cs
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,16 @@ public async Task Wrong_Query_Should_Return_Error(HttpMethod httpMethod, HttpCon
98
98
"Invalid 'Content-Type' header: non-supported media type 'something/unknown; charset=utf-8'. Must be of 'application/json', 'application/graphql' or 'application/x-www-form-urlencoded'. See: http://graphql.org/learn/serving-over-http/."
99
99
},
100
100
101
+
// MediaTypeHeaderValue ctor throws exception
102
+
// POST with unsupported charset should be a unsupported media type
// "Invalid 'Content-Type' header: non-supported media type 'application/json; charset=utf-3'. Must be of 'application/json', 'application/graphql' or 'application/x-www-form-urlencoded'. See: http://graphql.org/learn/serving-over-http/."
109
+
//},
110
+
101
111
// POST with JSON mime type that doesn't start with an object or array token should be a bad request
0 commit comments