Use the UmbracoApplicationUrl as the base for sheduled task urls, in case they are relative.
This commit is contained in:
@@ -63,6 +63,10 @@ namespace Umbraco.Web.Scheduling
|
||||
{
|
||||
using (var wc = new HttpClient())
|
||||
{
|
||||
if (Uri.TryCreate(_appContext.UmbracoApplicationUrl, UriKind.Absolute, out var baseUri))
|
||||
{
|
||||
wc.BaseAddress = baseUri;
|
||||
}
|
||||
var request = new HttpRequestMessage(HttpMethod.Get, url);
|
||||
|
||||
//TODO: pass custom the authorization header, currently these aren't really secured!
|
||||
@@ -122,4 +126,4 @@ namespace Umbraco.Web.Scheduling
|
||||
get { return true; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user