We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d068403 commit 76a6435Copy full SHA for 76a6435
Controllers/FrontChannelEmbedController.cs
@@ -60,7 +60,7 @@ public Task<IActionResult> Get([FromQuery] bool html = false, [FromRoute] Guid?
60
// Base64 decode
61
var decodedBytes = Convert.FromBase64String(customResponse);
62
var decodedString = Encoding.UTF8.GetString(decodedBytes);
63
- return Task.FromResult(html ? HtmlContent(decodedString) : MarkdownContent(decodedString));
+ return Task.FromResult<IActionResult>(html ? Content(decodedString, "text/html") : Content(decodedString, "text/markdown"));
64
}
65
66
var sb = new StringBuilder();
0 commit comments