Skip to content

Commit 019dad1

Browse files
authored
Fix content-type bug (#656)
1 parent 24419f0 commit 019dad1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Ui.Playground/Internal/PlaygroundPageModel.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ public string Render()
2727
var headers = new Dictionary<string, object>
2828
{
2929
["Accept"] = "application/json",
30-
["Content-Type"] = "application/json",
30+
// TODO: investigate, fails in Chrome
31+
// {
32+
// "error": "Response not successful: Received status code 400"
33+
// }
34+
//
35+
// MediaTypeHeaderValue.TryParse(httpRequest.ContentType, out var mediaTypeHeader) from GraphQLHttpMiddleware
36+
// returns false because of
37+
// content-type: application/json, application/json
38+
39+
//["Content-Type"] = "application/json",
3140
};
3241

3342
if (_options.Headers?.Count > 0)

0 commit comments

Comments
 (0)