Skip to content

Commit 76a6435

Browse files
committed
Fix custom reponse in FCE
1 parent d068403 commit 76a6435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controllers/FrontChannelEmbedController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public Task<IActionResult> Get([FromQuery] bool html = false, [FromRoute] Guid?
6060
// Base64 decode
6161
var decodedBytes = Convert.FromBase64String(customResponse);
6262
var decodedString = Encoding.UTF8.GetString(decodedBytes);
63-
return Task.FromResult(html ? HtmlContent(decodedString) : MarkdownContent(decodedString));
63+
return Task.FromResult<IActionResult>(html ? Content(decodedString, "text/html") : Content(decodedString, "text/markdown"));
6464
}
6565

6666
var sb = new StringBuilder();

0 commit comments

Comments
 (0)