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