forked from Kieran/void.cat
Use SiteUrl for cli response
This commit is contained in:
parent
ddab98ca14
commit
b46cd39849
@ -120,9 +120,10 @@ namespace VoidCat.Controllers
|
|||||||
|
|
||||||
if (cli)
|
if (cli)
|
||||||
{
|
{
|
||||||
var urlBuilder = new UriBuilder(Request.IsHttps ? "https" : "http", Request.Host.Host,
|
var urlBuilder = new UriBuilder(_settings.SiteUrl)
|
||||||
Request.Host.Port ?? 80,
|
{
|
||||||
$"/d/{vf.Id.ToBase58()}");
|
Path = $"/d/{vf.Id.ToBase58()}"
|
||||||
|
};
|
||||||
|
|
||||||
return Content(urlBuilder.Uri.ToString(), "text/plain");
|
return Content(urlBuilder.Uri.ToString(), "text/plain");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user