mirror of
https://github.com/MAKS-IT-COM/maksit-certs-ui.git
synced 2025-12-31 04:00:03 +01:00
(bugfix): ToActionResult returns quots problem
This commit is contained in:
parent
d59ded5cde
commit
81d602e381
@ -23,7 +23,11 @@ public class WellKnownController : ControllerBase {
|
||||
[HttpGet("acme-challenge/{fileName}")]
|
||||
public IActionResult AcmeChallenge(string 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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user