(bugfix): ToActionResult returns quots problem

This commit is contained in:
Maksym Sadovnychyy 2025-11-01 22:56:21 +01:00
parent d59ded5cde
commit 81d602e381

View File

@ -23,7 +23,11 @@ public class WellKnownController : ControllerBase {
[HttpGet("acme-challenge/{fileName}")] [HttpGet("acme-challenge/{fileName}")]
public IActionResult AcmeChallenge(string fileName) { public IActionResult AcmeChallenge(string fileName) {
var result = _certsFlowService.AcmeChallenge(fileName); var result = _certsFlowService.AcmeChallenge(fileName);
return result.ToActionResult(); if (!result.IsSuccess || result.Value == null)
return NotFound();
// Return as plain text, not as JSON
return Content(result.Value, "text/plain");
} }
} }